source: trunk/include/win/button.h@ 347

Last change on this file since 347 was 347, checked in by sandervl, 26 years ago

* empty log message *

File size: 1.2 KB
Line 
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 :-) */
22typedef 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
38extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg,
39 WPARAM wParam, LPARAM lParam );
40
41BOOL BUTTON_Register();
42BOOL BUTTON_Unregister();
43
44#endif /* __WINE_BUTTON_H */
45
Note: See TracBrowser for help on using the repository browser.