| 1 | /* $Id: ctrlconf.h,v 1.3 2003-05-27 09:46:30 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * Win32 common controls
|
|---|
| 4 | *
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #ifndef __CTRLCONF_H
|
|---|
| 8 | #define __CTRLCONF_H
|
|---|
| 9 |
|
|---|
| 10 | #include "wndmsg.h"
|
|---|
| 11 | #include "win32wmisc.h"
|
|---|
| 12 |
|
|---|
| 13 | #define SPY_GetMsgName(msg, hwnd) GetMsgText(msg)
|
|---|
| 14 |
|
|---|
| 15 | #define MapSL(a) a
|
|---|
| 16 |
|
|---|
| 17 | #define SendMessage16 SendMessageA
|
|---|
| 18 |
|
|---|
| 19 | #define WIN_GetFullHandle(hwnd) hwnd
|
|---|
| 20 |
|
|---|
| 21 | #define WIN_SuspendWndsLock() 0
|
|---|
| 22 | #define WIN_RestoreWndsLock(ipreviousLock)
|
|---|
| 23 |
|
|---|
| 24 | //Set the style of a window without sending WM_STYLECHANGING/ED messages
|
|---|
| 25 | void WIN_SetStyle(HWND hwnd, DWORD dwStyle);
|
|---|
| 26 |
|
|---|
| 27 | //WIN31 look only -> we don't use it
|
|---|
| 28 | #define NC_DrawSysButton(hwnd, hdc, state)
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | #define LOCAL_Alloc(ds, flags, size) 0
|
|---|
| 32 | #define LOCAL_ReAlloc(ds, handle, size, flags ) 0
|
|---|
| 33 | #define LOCAL_Lock(ds, handle ) NULL
|
|---|
| 34 | #define LOCAL_Unlock(ds, handle ) 1
|
|---|
| 35 | #define LOCAL_Size(ds, handle ) 0
|
|---|
| 36 |
|
|---|
| 37 | /* Wine look */
|
|---|
| 38 |
|
|---|
| 39 | typedef enum
|
|---|
| 40 | {
|
|---|
| 41 | WIN31_LOOK,
|
|---|
| 42 | WIN95_LOOK,
|
|---|
| 43 | WIN98_LOOK
|
|---|
| 44 | } WINE_LOOK;
|
|---|
| 45 |
|
|---|
| 46 | #define TWEAK_WineLook WIN98_LOOK
|
|---|
| 47 |
|
|---|
| 48 | typedef LPDRAGINFO LPDRAGINFO16;
|
|---|
| 49 |
|
|---|
| 50 | /* Built-in class descriptor */
|
|---|
| 51 | struct builtin_class_descr
|
|---|
| 52 | {
|
|---|
| 53 | LPCSTR name; /* class name */
|
|---|
| 54 | UINT style; /* class style */
|
|---|
| 55 | WNDPROC procA; /* ASCII window procedure */
|
|---|
| 56 | WNDPROC procW; /* Unicode window procedure */
|
|---|
| 57 | INT extra; /* window extra bytes */
|
|---|
| 58 | LPCSTR cursor; /* cursor name */
|
|---|
| 59 | HBRUSH brush; /* brush or system color */
|
|---|
| 60 | };
|
|---|
| 61 |
|
|---|
| 62 | #ifdef __cplusplus
|
|---|
| 63 | extern "C" {
|
|---|
| 64 | #endif
|
|---|
| 65 |
|
|---|
| 66 | extern const struct builtin_class_descr LISTBOX_builtin_class;
|
|---|
| 67 | extern const struct builtin_class_descr COMBOLBOX_builtin_class;
|
|---|
| 68 | extern const struct builtin_class_descr COMBO_builtin_class;
|
|---|
| 69 | extern const struct builtin_class_descr EDIT_builtin_class;
|
|---|
| 70 | extern const struct builtin_class_descr MDICLIENT_builtin_class;
|
|---|
| 71 | extern const struct builtin_class_descr SCROLL_builtin_class;
|
|---|
| 72 | extern const struct builtin_class_descr MENU_builtin_class;
|
|---|
| 73 |
|
|---|
| 74 | #ifdef __cplusplus
|
|---|
| 75 | }
|
|---|
| 76 | #endif
|
|---|
| 77 |
|
|---|
| 78 | #endif // __CTRLCONF_H
|
|---|