Sync with trunk r43123
[reactos.git] / reactos / dll / win32 / user32 / include / regcontrol.h
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS User32
5 * PURPOSE: Built-in control registration
6 * FILE: include/user32/regcontrol.h
7 * PROGRAMER: Ge van Geldorp (ge@gse.nl)
8 * REVISION HISTORY: 2003/06/16 GvG Created
9 * NOTES:
10 */
11 #ifndef ROS_REGCONTROL_H
12 #define ROS_REGCONTROL_H
13
14 #define IS_ATOM(x) \
15 (((ULONG_PTR)(x) > 0x0) && ((ULONG_PTR)(x) < 0x10000))
16
17 /* Built-in class descriptor */
18 struct builtin_class_descr
19 {
20 LPCWSTR name; /* class name */
21 UINT style; /* class style */
22 WNDPROC procA; /* Ansi window procedure */
23 WNDPROC procW; /* Unicode window procedure */
24 INT extra; /* window extra bytes */
25 LPCWSTR cursor; /* cursor name */
26 HBRUSH brush; /* brush or system color */
27 };
28
29 extern DWORD RegisterDefaultClasses;
30 BOOL WINAPI RegisterSystemControls(VOID);
31
32 extern const struct builtin_class_descr BUTTON_builtin_class;
33 extern const struct builtin_class_descr COMBO_builtin_class;
34 extern const struct builtin_class_descr COMBOLBOX_builtin_class;
35 extern const struct builtin_class_descr DIALOG_builtin_class;
36 extern const struct builtin_class_descr POPUPMENU_builtin_class;
37 extern const struct builtin_class_descr DESKTOP_builtin_class;
38 extern const struct builtin_class_descr EDIT_builtin_class;
39 extern const struct builtin_class_descr ICONTITLE_builtin_class;
40 extern const struct builtin_class_descr LISTBOX_builtin_class;
41 extern const struct builtin_class_descr MDICLIENT_builtin_class;
42 extern const struct builtin_class_descr MENU_builtin_class;
43 extern const struct builtin_class_descr SCROLL_builtin_class;
44 extern const struct builtin_class_descr STATIC_builtin_class;
45
46 ATOM WINAPI RegisterClassExWOWW(WNDCLASSEXW *,LPDWORD,WORD,DWORD,BOOL);
47
48 #endif /* ROS_REGCONTROL_H */