| Line | |
|---|
| 1 | /* $Id: button.h,v 1.4 1999-07-23 17:55:27 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 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 |
|
|---|
| 35 | #define BUTTON_STATE(hwnd) ((WIN_FindWndPtr(hwnd))->wExtra[0])
|
|---|
| 36 |
|
|---|
| 37 | extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg,
|
|---|
| 38 | WPARAM wParam, LPARAM lParam );
|
|---|
| 39 |
|
|---|
| 40 | BOOL BUTTON_Register();
|
|---|
| 41 | BOOL BUTTON_Unregister();
|
|---|
| 42 |
|
|---|
| 43 | #endif /* __WINE_BUTTON_H */
|
|---|
| 44 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.