mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
317af320cf
this .h file, but only those. Necessary fixes to a lot of .c files, started optimizing "windows.h" away from some of them. Moved GetCurrentTask prototype to wine/winbase16.h.
34 lines
944 B
C
34 lines
944 B
C
/*
|
|
* Button-class extra info
|
|
*
|
|
* Copyright 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_BUTTON_H
|
|
#define __WINE_BUTTON_H
|
|
|
|
#include "wingdi.h"
|
|
|
|
/* Extra info for BUTTON windows */
|
|
/* Note: under MS-Windows, state is a BYTE and this structure is */
|
|
/* only 3 bytes long. I don't think there are programs out there */
|
|
/* broken enough to rely on this :-) */
|
|
typedef struct
|
|
{
|
|
WORD state; /* Current state */
|
|
HFONT16 hFont; /* Button font (or 0 for system font) */
|
|
} BUTTONINFO;
|
|
|
|
/* Button state values */
|
|
#define BUTTON_UNCHECKED 0x00
|
|
#define BUTTON_CHECKED 0x01
|
|
#define BUTTON_3STATE 0x02
|
|
#define BUTTON_HIGHLIGHTED 0x04
|
|
#define BUTTON_HASFOCUS 0x08
|
|
|
|
#define BUTTON_STATE(hwnd) ((WIN_FindWndPtr(hwnd))->wExtra[0])
|
|
|
|
extern LRESULT WINAPI ButtonWndProc( HWND32 hWnd, UINT32 uMsg,
|
|
WPARAM32 wParam, LPARAM lParam );
|
|
|
|
#endif /* __WINE_BUTTON_H */
|