| Line |  | 
|---|
| 1 | /* $Id: button.h,v 1.1 1999-05-24 20:19:08 ktk Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Button-class extra info | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright 1994 Alexandre Julliard | 
|---|
| 7 | */ | 
|---|
| 8 |  | 
|---|
| 9 | #ifndef __WINE_BUTTON_H | 
|---|
| 10 | #define __WINE_BUTTON_H | 
|---|
| 11 |  | 
|---|
| 12 | #include "wingdi.h" | 
|---|
| 13 |  | 
|---|
| 14 | /* Extra info for BUTTON windows */ | 
|---|
| 15 | /* Note: under MS-Windows, state is a BYTE and this structure is */ | 
|---|
| 16 | /* only 3 bytes long. I don't think there are programs out there */ | 
|---|
| 17 | /* broken enough to rely on this :-) */ | 
|---|
| 18 | typedef struct | 
|---|
| 19 | { | 
|---|
| 20 | WORD     state;   /* Current state */ | 
|---|
| 21 | HFONT16  hFont;   /* Button font (or 0 for system font) */ | 
|---|
| 22 | HANDLE   hImage;  /* Handle to the image or the icon */ | 
|---|
| 23 | } BUTTONINFO; | 
|---|
| 24 |  | 
|---|
| 25 | /* Button state values */ | 
|---|
| 26 | #define BUTTON_UNCHECKED       0x00 | 
|---|
| 27 | #define BUTTON_CHECKED         0x01 | 
|---|
| 28 | #define BUTTON_3STATE          0x02 | 
|---|
| 29 | #define BUTTON_HIGHLIGHTED     0x04 | 
|---|
| 30 | #define BUTTON_HASFOCUS        0x08 | 
|---|
| 31 |  | 
|---|
| 32 | #define BUTTON_STATE(hwnd)     ((WIN_FindWndPtr(hwnd))->wExtra[0]) | 
|---|
| 33 |  | 
|---|
| 34 | extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg, | 
|---|
| 35 | WPARAM wParam, LPARAM lParam ); | 
|---|
| 36 |  | 
|---|
| 37 | #endif  /* __WINE_BUTTON_H */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.