1 | /* $Id: button.h,v 1.3 1999-07-20 16:22:54 sandervl 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 ODINBUTTONCLASSNAME "ODIN_BUTTON"
|
---|
16 | #define WIN32BUTTONCLASSNAME "BUTTON"
|
---|
17 |
|
---|
18 | /* Extra info for BUTTON windows */
|
---|
19 | /* Note: under MS-Windows, state is a BYTE and this structure is */
|
---|
20 | /* only 3 bytes long. I don't think there are programs out there */
|
---|
21 | /* broken enough to rely on this :-) */
|
---|
22 | typedef struct
|
---|
23 | {
|
---|
24 | WORD state; /* Current state */
|
---|
25 | HFONT hFont; /* Button font (or 0 for system font) */
|
---|
26 | HANDLE hImage; /* Handle to the image or the icon */
|
---|
27 | } BUTTONINFO;
|
---|
28 |
|
---|
29 | /* Button state values */
|
---|
30 | #define BUTTON_UNCHECKED 0x00
|
---|
31 | #define BUTTON_CHECKED 0x01
|
---|
32 | #define BUTTON_3STATE 0x02
|
---|
33 | #define BUTTON_HIGHLIGHTED 0x04
|
---|
34 | #define BUTTON_HASFOCUS 0x08
|
---|
35 |
|
---|
36 | #define BUTTON_STATE(hwnd) ((WIN_FindWndPtr(hwnd))->wExtra[0])
|
---|
37 |
|
---|
38 | extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg,
|
---|
39 | WPARAM wParam, LPARAM lParam );
|
---|
40 |
|
---|
41 | BOOL BUTTON_Register();
|
---|
42 | BOOL BUTTON_Unregister();
|
---|
43 |
|
---|
44 | #endif /* __WINE_BUTTON_H */
|
---|
45 |
|
---|