23 references to SC
PresentationFramework (23)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (15)
1081
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfEnabled);
1082
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfDisabled);
1083
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, mfDisabled);
1084
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, canMinimize ? mfEnabled : mfDisabled);
1085
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, mfDisabled);
1088
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfEnabled);
1089
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfDisabled);
1090
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, mfDisabled);
1091
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, mfDisabled);
1092
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, canMaximize ? mfEnabled : mfDisabled);
1095
NativeMethods.EnableMenuItem(hmenu,
SC
.RESTORE, mfDisabled);
1096
NativeMethods.EnableMenuItem(hmenu,
SC
.MOVE, mfEnabled);
1097
NativeMethods.EnableMenuItem(hmenu,
SC
.SIZE, canSize ? mfEnabled : mfDisabled);
1098
NativeMethods.EnableMenuItem(hmenu,
SC
.MINIMIZE, canMinimize ? mfEnabled : mfDisabled);
1099
NativeMethods.EnableMenuItem(hmenu,
SC
.MAXIMIZE, canMaximize ? mfEnabled : mfDisabled);
src\Framework\System\Windows\Standard\NativeMethods.cs (3)
2873
private static extern int _EnableMenuItem(IntPtr hMenu,
SC
uIDEnableItem, MF uEnable);
2880
public static MF EnableMenuItem(IntPtr hMenu,
SC
uIDEnableItem, MF uEnable)
2901
public static void RemoveMenu(IntPtr hMenu,
SC
uPosition, MF uFlags)
src\Framework\System\Windows\SystemCommands.cs (5)
32
private static void _PostSystemCommand(Window window,
SC
command)
52
_PostSystemCommand(window,
SC
.CLOSE);
64
_PostSystemCommand(window,
SC
.MAXIMIZE);
76
_PostSystemCommand(window,
SC
.MINIMIZE);
88
_PostSystemCommand(window,
SC
.RESTORE);