Hack: always try builtin module before elf or elfdll to avoid loading
[wine/multimedia.git] / include / button.h
blob61e1555895c4ad9ec48c501c7b49d4674e5a79be
1 /*
2 * Button-class extra info
4 * Copyright 1994 Alexandre Julliard
5 */
7 #ifndef __WINE_BUTTON_H
8 #define __WINE_BUTTON_H
10 #include "wingdi.h"
12 /* Extra info for BUTTON windows */
13 /* Note: under MS-Windows, state is a BYTE and this structure is */
14 /* only 3 bytes long. I don't think there are programs out there */
15 /* broken enough to rely on this :-) */
16 typedef struct
18 WORD state; /* Current state */
19 HFONT16 hFont; /* Button font (or 0 for system font) */
20 HANDLE hImage; /* Handle to the image or the icon */
21 } BUTTONINFO;
23 /* Button state values */
24 #define BUTTON_UNCHECKED 0x00
25 #define BUTTON_CHECKED 0x01
26 #define BUTTON_3STATE 0x02
27 #define BUTTON_HIGHLIGHTED 0x04
28 #define BUTTON_HASFOCUS 0x08
29 #define BUTTON_NSTATES 0x0F
30 /* undocumented flags */
31 #define BUTTON_BTNPRESSED 0x40
32 #define BUTTON_UNKNOWN2 0x20
33 #define BUTTON_UNKNOWN3 0x10
35 #define BUTTON_STATE(hwnd) ((WIN_FindWndPtr(hwnd))->wExtra[0])
37 extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg,
38 WPARAM wParam, LPARAM lParam );
40 #endif /* __WINE_BUTTON_H */