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