23 references to SC
PresentationFramework (23)
System\Windows\Shell\WindowChromeWorker.cs (15)
687
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfEnabled);
688
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfDisabled);
689
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, mfDisabled);
690
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, canMinimize ? mfEnabled : mfDisabled);
691
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, mfDisabled);
694
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfEnabled);
695
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfDisabled);
696
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, mfDisabled);
697
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, mfDisabled);
698
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, canMaximize ? mfEnabled : mfDisabled);
701
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfDisabled);
702
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfEnabled);
703
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, canSize ? mfEnabled : mfDisabled);
704
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, canMinimize ? mfEnabled : mfDisabled);
705
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, canMaximize ? mfEnabled : mfDisabled);
System\Windows\Standard\NativeMethods.cs (3)
2592
private static extern int _EnableMenuItem(IntPtr hMenu,
SC
uIDEnableItem, MF uEnable);
2594
public static MF EnableMenuItem(IntPtr hMenu,
SC
uIDEnableItem, MF uEnable)
2605
public static void RemoveMenu(IntPtr hMenu,
SC
uPosition, MF uFlags)
System\Windows\SystemCommands.cs (5)
31
private static void _PostSystemCommand(Window window,
SC
command)
45
_PostSystemCommand(window,
SC
.CLOSE);
51
_PostSystemCommand(window,
SC
.MAXIMIZE);
57
_PostSystemCommand(window,
SC
.MINIMIZE);
63
_PostSystemCommand(window,
SC
.RESTORE);