namespace Microsoft.Win32 { //SC定义 public static partial class NativeMethods { /// /// Sizes the window. /// public const int SC_SIZE = 0xF000; /// /// Moves the window. /// public const int SC_MOVE = 0xF010; /// /// Minimizes the window. /// public const int SC_MINIMIZE = 0xF020; /// /// Maximizes the window. /// public const int SC_MAXIMIZE = 0xF030; /// /// Moves to the next window. /// public const int SC_NEXTWINDOW = 0xF040; /// /// Moves to the previous window. /// public const int SC_PREVWINDOW = 0xF050; /// /// Closes the window. /// public const int SC_CLOSE = 0xF060; /// /// Scrolls vertically. /// public const int SC_VSCROLL = 0xF070; /// /// Scrolls horizontally. /// public const int SC_HSCROLL = 0xF080; /// /// Retrieves the window menu as a result of a mouse click. /// public const int SC_MOUSEMENU = 0xF090; /// /// Retrieves the window menu as a result of a keystroke.For more information, see the Remarks section. /// public const int SC_KEYMENU = 0xF100; /// /// TODO /// public const int SC_ARRANGE = 0xF110; /// /// Restores the window to its normal position and size. /// public const int SC_RESTORE = 0xF120; /// /// Activates the Start menu. /// public const int SC_TASKLIST = 0xF130; /// /// Executes the screen saver application specified in the [boot] section of the System.ini file. /// public const int SC_SCREENSAVE = 0xF140; /// /// Activates the window associated with the application-specified hot key.The lParam parameter identifies the window to activate. /// public const int SC_HOTKEY = 0xF150; //#if(WINVER >= 0x0400) //Win95 /// /// Selects the default item; the user double-clicked the window menu. /// public const int SC_DEFAULT = 0xF160; /// /// Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer. /// The lParam parameter can have the following values: -1 = the display is powering on,1 = the display is going to low power, 2 = the display is being shut off /// public const int SC_MONITORPOWER = 0xF170; /// /// Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message. /// public const int SC_CONTEXTHELP = 0xF180; /// /// TODO /// public const int SC_SEPARATOR = 0xF00F; //#endif /* WINVER >= 0x0400 */ //#if(WINVER >= 0x0600) //Vista /// /// Indicates whether the screen saver is secure. /// public const int SCF_ISSECURE = 0x00000001; //#endif /* WINVER >= 0x0600 */ /// /// Obsolete names /// public const int SC_ICON = SC_MINIMIZE; /// /// Obsolete names /// public const int SC_ZOOM = SC_MAXIMIZE; } }