tangxu
2024-10-22 4d9fe5ed98ceb6b8fe9dc52ebfb80860ad1aee99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
namespace Microsoft.Win32
{
    //SC定义
    public static partial class NativeMethods
    {
        /// <summary>
        /// Sizes the window.
        /// </summary>
        public const int SC_SIZE = 0xF000;
        /// <summary>
        /// Moves the window.
        /// </summary>
        public const int SC_MOVE = 0xF010;
        /// <summary>
        /// Minimizes the window.
        /// </summary>
        public const int SC_MINIMIZE = 0xF020;
        /// <summary>
        /// Maximizes the window.
        /// </summary>
        public const int SC_MAXIMIZE = 0xF030;
        /// <summary>
        /// Moves to the next window.
        /// </summary>
        public const int SC_NEXTWINDOW = 0xF040;
        /// <summary>
        /// Moves to the previous window.
        /// </summary>
        public const int SC_PREVWINDOW = 0xF050;
        /// <summary>
        /// Closes the window.
        /// </summary>
        public const int SC_CLOSE = 0xF060;
        /// <summary>
        /// Scrolls vertically.
        /// </summary>
        public const int SC_VSCROLL = 0xF070;
        /// <summary>
        /// Scrolls horizontally.
        /// </summary>
        public const int SC_HSCROLL = 0xF080;
        /// <summary>
        /// Retrieves the window menu as a result of a mouse click.
        /// </summary>
        public const int SC_MOUSEMENU = 0xF090;
        /// <summary>
        /// Retrieves the window menu as a result of a keystroke.For more information, see the Remarks section.
        /// </summary>
        public const int SC_KEYMENU = 0xF100;
        /// <summary>
        /// TODO
        /// </summary>
        public const int SC_ARRANGE = 0xF110;
        /// <summary>
        /// Restores the window to its normal position and size.
        /// </summary>
        public const int SC_RESTORE = 0xF120;
        /// <summary>
        /// Activates the Start menu.
        /// </summary>
        public const int SC_TASKLIST = 0xF130;
        /// <summary>
        /// Executes the screen saver application specified in the [boot] section of the System.ini file.
        /// </summary>
        public const int SC_SCREENSAVE = 0xF140;
        /// <summary>
        /// Activates the window associated with the application-specified hot key.The lParam parameter identifies the window to activate.
        /// </summary>
        public const int SC_HOTKEY = 0xF150;
 
        //#if(WINVER >= 0x0400) //Win95
        /// <summary>
        /// Selects the default item; the user double-clicked the window menu.
        /// </summary>
        public const int SC_DEFAULT = 0xF160;
        /// <summary>
        /// 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
        /// </summary>
        public const int SC_MONITORPOWER = 0xF170;
        /// <summary>
        /// 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.
        /// </summary>
        public const int SC_CONTEXTHELP = 0xF180;
        /// <summary>
        /// TODO
        /// </summary>
        public const int SC_SEPARATOR = 0xF00F;
        //#endif /* WINVER >= 0x0400 */
 
        //#if(WINVER >= 0x0600) //Vista
        /// <summary>
        /// Indicates whether the screen saver is secure.
        /// </summary>
        public const int SCF_ISSECURE = 0x00000001;
        //#endif /* WINVER >= 0x0600 */
 
        /// <summary>
        /// Obsolete names
        /// </summary>
        public const int SC_ICON = SC_MINIMIZE;
        /// <summary>
        /// Obsolete names
        /// </summary>
        public const int SC_ZOOM = SC_MAXIMIZE;
    }
}