1st cut implementation of DdeInitialize32W and supporting code.
[wine] / include / button.h
1 /*
2  * Button-class extra info
3  *
4  * Copyright 1994 Alexandre Julliard
5  */
6
7 #ifndef __WINE_BUTTON_H
8 #define __WINE_BUTTON_H
9
10 #include "windows.h"
11
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
17 {
18     WORD     state;   /* Current state */
19     HFONT16  hFont;   /* Button font (or 0 for system font) */
20 } BUTTONINFO;
21
22   /* Button state values */
23 #define BUTTON_UNCHECKED       0x00
24 #define BUTTON_CHECKED         0x01
25 #define BUTTON_3STATE          0x02
26 #define BUTTON_HIGHLIGHTED     0x04
27 #define BUTTON_HASFOCUS        0x08
28
29 #define BUTTON_STATE(hwnd)     ((WIN_FindWndPtr(hwnd))->wExtra[0])
30
31 extern LRESULT WINAPI ButtonWndProc( HWND32 hWnd, UINT32 uMsg,
32                                      WPARAM32 wParam, LPARAM lParam );
33
34 #endif  /* __WINE_BUTTON_H */