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

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

* empty log message *

File size: 1.1 KB
Line 
1/* $Id: button.h,v 1.2 1999-07-16 17:30:47 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 /* Extra info for BUTTON windows */
16 /* Note: under MS-Windows, state is a BYTE and this structure is */
17 /* only 3 bytes long. I don't think there are programs out there */
18 /* broken enough to rely on this :-) */
19typedef struct
20{
21 WORD state; /* Current state */
22 HFONT hFont; /* Button font (or 0 for system font) */
23 HANDLE hImage; /* Handle to the image or the icon */
24} BUTTONINFO;
25
26 /* Button state values */
27#define BUTTON_UNCHECKED 0x00
28#define BUTTON_CHECKED 0x01
29#define BUTTON_3STATE 0x02
30#define BUTTON_HIGHLIGHTED 0x04
31#define BUTTON_HASFOCUS 0x08
32
33#define BUTTON_STATE(hwnd) ((WIN_FindWndPtr(hwnd))->wExtra[0])
34
35extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg,
36 WPARAM wParam, LPARAM lParam );
37
38void BUTTON_Register();
39void BUTTON_Unregister();
40
41#endif /* __WINE_BUTTON_H */
42
Note: See TracBrowser for help on using the repository browser.