23 references to SC
PresentationFramework (23)
System\Windows\Shell\WindowChromeWorker.cs (15)
682
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfEnabled);
683
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfDisabled);
684
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, mfDisabled);
685
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, canMinimize ? mfEnabled : mfDisabled);
686
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, mfDisabled);
689
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfEnabled);
690
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfDisabled);
691
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, mfDisabled);
692
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, mfDisabled);
693
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, canMaximize ? mfEnabled : mfDisabled);
696
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfDisabled);
697
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfEnabled);
698
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, canSize ? mfEnabled : mfDisabled);
699
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, canMinimize ? mfEnabled : mfDisabled);
700
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, canMaximize ? mfEnabled : mfDisabled);
System\Windows\Standard\NativeMethods.cs (3)
2587
private static extern int _EnableMenuItem(IntPtr hMenu,
SC
uIDEnableItem, MF uEnable);
2589
public static MF EnableMenuItem(IntPtr hMenu,
SC
uIDEnableItem, MF uEnable)
2600
public static void RemoveMenu(IntPtr hMenu,
SC
uPosition, MF uFlags)
System\Windows\SystemCommands.cs (5)
29
private static void _PostSystemCommand(Window window,
SC
command)
43
_PostSystemCommand(window,
SC
.CLOSE);
49
_PostSystemCommand(window,
SC
.MAXIMIZE);
55
_PostSystemCommand(window,
SC
.MINIMIZE);
61
_PostSystemCommand(window,
SC
.RESTORE);