source: trunk/include/winconst.h@ 953

Last change on this file since 953 was 953, checked in by sandervl, 26 years ago

New headers for kernel32 win32 image classes + removed old ones + nameid.h

File size: 5.9 KB
Line 
1/* $Id: winconst.h,v 1.7 1999-09-15 23:29:08 sandervl Exp $ */
2
3/*
4 * Win32 constants
5 *
6 * Copyright (C) 1999 Sander van Leeuwen
7 *
8 */
9
10/* Predefined resources */
11#define IDI_APPLICATION_W 32512
12#define IDI_HAND_W 32513
13#define IDI_QUESTION_W 32514
14#define IDI_EXCLAMATION_W 32515
15#define IDI_ASTERISK_W 32516
16#define IDI_WINLOGO_W 32517
17
18#define IDC_ARROW_W 32512
19#define IDC_IBEAM_W 32513
20#define IDC_WAIT_W 32514
21#define IDC_CROSS_W 32515
22#define IDC_UPARROW_W 32516
23#define IDC_SIZE_W 32640
24#define IDC_ICON_W 32641
25#define IDC_SIZENWSE_W 32642
26#define IDC_SIZENESW_W 32643
27#define IDC_SIZEWE_W 32644
28#define IDC_SIZENS_W 32645
29#define IDC_SIZEALL_W 32646
30#define IDC_NO_W 32648
31#define IDC_APPSTARTING_W 32650
32#define IDC_HELP_W 32651
33
34
35#define OBM_CLOSE_W 32754
36#define OBM_UPARROW_W 32753
37#define OBM_DNARROW_W 32752
38#define OBM_RGARROW_W 32751
39#define OBM_LFARROW_W 32750
40#define OBM_REDUCE_W 32749
41#define OBM_ZOOM_W 32748
42#define OBM_RESTORE_W 32747
43#define OBM_REDUCED_W 32746
44#define OBM_ZOOMD_W 32745
45#define OBM_RESTORED_W 32744
46#define OBM_UPARROWD_W 32743
47#define OBM_DNARROWD_W 32742
48#define OBM_RGARROWD_W 32741
49#define OBM_LFARROWD_W 32740
50#define OBM_MNARROW_W 32739
51#define OBM_COMBO_W 32738
52#define OBM_UPARROWI_W 32737
53#define OBM_DNARROWI_W 32736
54#define OBM_RGARROWI_W 32735
55#define OBM_LFARROWI_W 32734
56
57#define OBM_OLD_CLOSE_W 32767
58#define OBM_SIZE_W 32766
59#define OBM_OLD_UPARROW_W 32765
60#define OBM_OLD_DNARROW_W 32764
61#define OBM_OLD_RGARROW_W 32763
62#define OBM_OLD_LFARROW_W 32762
63#define OBM_BTSIZE_W 32761
64#define OBM_CHECK_W 32760
65#define OBM_CHECKBOXES_W 32759
66#define OBM_BTNCORNERS_W 32758
67#define OBM_OLD_REDUCE_W 32757
68#define OBM_OLD_ZOOM_W 32756
69#define OBM_OLD_RESTORE_W 32755
70
71/* Window Styles */
72#define WS_OVERLAPPED_W 0x00000000L
73#define WS_POPUP_W 0x80000000L
74#define WS_CHILD_W 0x40000000L
75#define WS_MINIMIZE_W 0x20000000L
76#define WS_VISIBLE_W 0x10000000L
77#define WS_DISABLED_W 0x08000000L
78#define WS_CLIPSIBLINGS_W 0x04000000L
79#define WS_CLIPCHILDREN_W 0x02000000L
80#define WS_MAXIMIZE_W 0x01000000L
81#define WS_CAPTION_W 0x00C00000L
82#define WS_BORDER_W 0x00800000L
83#define WS_DLGFRAME_W 0x00400000L
84#define WS_VSCROLL_W 0x00200000L
85#define WS_HSCROLL_W 0x00100000L
86#define WS_SYSMENU_W 0x00080000L
87#define WS_THICKFRAME_W 0x00040000L
88#define WS_GROUP_W 0x00020000L
89#define WS_TABSTOP_W 0x00010000L
90#define WS_MINIMIZEBOX_W 0x00020000L
91#define WS_MAXIMIZEBOX_W 0x00010000L
92
93/* Window extended styles */
94#define WS_EX_DLGMODALFRAME_W 0x00000001L
95#define WS_EX_DRAGDETECT_W 0x00000002L
96#define WS_EX_NOPARENTNOTIFY_W 0x00000004L
97#define WS_EX_TOPMOST_W 0x00000008L
98#define WS_EX_ACCEPTFILES_W 0x00000010L
99#define WS_EX_TRANSPARENT_W 0x00000020L
100
101/* Class Styles
102 */
103 #define CS_VREDRAW_W 0x0001
104 #define CS_HREDRAW_W 0x0002
105 #define CS_KEYCVTWINDOW_W 0x0004
106 #define CS_DBLCLKS_W 0x0008
107 #define CS_OWNDC_W 0x0020
108 #define CS_CLASSDC_W 0x0040
109 #define CS_PARENTDC_W 0x0080
110 #define CS_NOKEYCVT_W 0x0100
111 #define CS_NOCLOSE_W 0x0200
112 #define CS_SAVEBITS_W 0x0800
113 #define CS_BYTEALIGNCLIENT_W 0x1000
114 #define CS_BYTEALIGNWINDOW_W 0x2000
115 #define CS_GLOBALCLASS_W 0x4000
116
117#define DUPLICATE_CLOSE_SOURCE 0x00000001
118#define DUPLICATE_SAME_ACCESS 0x00000002
119
120#define HANDLE_FLAG_INHERIT 0x00000001
121#define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x00000002
122
123/* SetWindowPos() and WINDOWPOS flags */
124#define SWP_NOSIZE_W 0x0001
125#define SWP_NOMOVE_W 0x0002
126#define SWP_NOZORDER_W 0x0004
127#define SWP_NOREDRAW_W 0x0008
128#define SWP_NOACTIVATE_W 0x0010
129#define SWP_FRAMECHANGED_W 0x0020 /* The frame changed: send WM_NCCALCSIZE */
130#define SWP_SHOWWINDOW_W 0x0040
131#define SWP_HIDEWINDOW_W 0x0080
132#define SWP_NOCOPYBITS_W 0x0100
133#define SWP_NOOWNERZORDER_W 0x0200 /* Don't do owner Z ordering */
134
135#define SWP_DRAWFRAME_W SWP_FRAMECHANGED_W
136#define SWP_NOREPOSITION_W SWP_NOOWNERZORDER_W
137
138#define SWP_NOSENDCHANGING_W 0x0400
139#define SWP_DEFERERASE_W 0x2000
140
141/* undocumented SWP flags - from SDK 3.1 */
142#define SWP_NOCLIENTSIZE_W 0x0800
143#define SWP_NOCLIENTMOVE_W 0x1000
144
145#define HWND_DESKTOP_W ((HWND)0)
146#define HWND_BROADCAST_W ((HWND)0xffff)
147
148/* SetWindowPos() hwndInsertAfter field values */
149#define HWND_TOP_W ((HWND)0)
150#define HWND_BOTTOM_W ((HWND)1)
151#define HWND_TOPMOST_W ((HWND)-1)
152#define HWND_NOTOPMOST_W ((HWND)-2)
153
154
155/* Argument 1 passed to the DllEntryProc. */
156#define DLL_PROCESS_DETACH 0 /* detach process (unload library) */
157#define DLL_PROCESS_ATTACH 1 /* attach process (load library) */
158#define DLL_THREAD_ATTACH 2 /* attach new thread */
159#define DLL_THREAD_DETACH 3 /* detach thread */
160
161/* Regions */
162#define ERROR_W 0
163#define NULLREGION_W 1
164#define SIMPLEREGION_W 2
165#define COMPLEXREGION_W 3
166
167/* ShowWindow() codes */
168#define SW_HIDE_W 0
169#define SW_SHOWNORMAL_W 1
170#define SW_NORMAL_W 1
171#define SW_SHOWMINIMIZED_W 2
172#define SW_SHOWMAXIMIZED_W 3
173#define SW_MAXIMIZE_W 3
174#define SW_SHOWNOACTIVATE_W 4
175#define SW_SHOW_W 5
176#define SW_MINIMIZE_W 6
177#define SW_SHOWMINNOACTIVE_W 7
178#define SW_SHOWNA_W 8
179#define SW_RESTORE_W 9
180#define SW_SHOWDEFAULT_W 10
181#define SW_MAX_W 10
182#define SW_NORMALNA_W 0xCC /* undoc. flag in MinMaximize */
Note: See TracBrowser for help on using the repository browser.