1 | /* $Id: button.h,v 1.6 1999-11-13 17:40:00 cbratschi Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Button-class extra info
|
---|
5 | *
|
---|
6 | * Copyright 1994 Alexandre Julliard
|
---|
7 | * Copyright 1999 Christoph Bratschi
|
---|
8 | */
|
---|
9 |
|
---|
10 | #ifndef __WINE_BUTTON_H
|
---|
11 | #define __WINE_BUTTON_H
|
---|
12 |
|
---|
13 | #include "wingdi.h"
|
---|
14 |
|
---|
15 | #define BUTTONCLASSNAME "BUTTON"
|
---|
16 |
|
---|
17 | /* Extra info for BUTTON windows */
|
---|
18 | /* Note: under MS-Windows, state is a BYTE and this structure is */
|
---|
19 | /* only 3 bytes long. I don't think there are programs out there */
|
---|
20 | /* broken enough to rely on this :-) */
|
---|
21 | typedef struct
|
---|
22 | {
|
---|
23 | WORD state; /* Current state */
|
---|
24 | HFONT hFont; /* Button font (or 0 for system font) */
|
---|
25 | HANDLE hImage; /* Handle to the image or the icon */
|
---|
26 | } BUTTONINFO;
|
---|
27 |
|
---|
28 | /* Button state values */
|
---|
29 | #define BUTTON_UNCHECKED 0x00
|
---|
30 | #define BUTTON_CHECKED 0x01
|
---|
31 | #define BUTTON_3STATE 0x02
|
---|
32 | #define BUTTON_HIGHLIGHTED 0x04
|
---|
33 | #define BUTTON_HASFOCUS 0x08
|
---|
34 | #define BUTTON_NSTATES 0x0F
|
---|
35 | /* undocumented flags */
|
---|
36 | #define BUTTON_BTNPRESSED 0x40
|
---|
37 | #define BUTTON_UNKNOWN2 0x20
|
---|
38 | #define BUTTON_UNKNOWN3 0x10
|
---|
39 |
|
---|
40 | //#define BUTTON_STATE(hwnd) ((WIN_FindWndPtr(hwnd))->wExtra[0])
|
---|
41 |
|
---|
42 | //extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg,
|
---|
43 | // WPARAM wParam, LPARAM lParam );
|
---|
44 |
|
---|
45 | BOOL BUTTON_Register();
|
---|
46 | BOOL BUTTON_Unregister();
|
---|
47 |
|
---|
48 | #endif /* __WINE_BUTTON_H */
|
---|
49 |
|
---|