source: trunk/include/win/button.h

Last change on this file was 10318, checked in by sandervl, 22 years ago

updates

File size: 1.3 KB
RevLine 
[10318]1/* $Id: button.h,v 1.8 2003-11-14 13:43:08 sandervl Exp $ */
[4]2
3/*
4 * Button-class extra info
5 *
6 * Copyright 1994 Alexandre Julliard
[316]7 * Copyright 1999 Christoph Bratschi
[4]8 */
9
10#ifndef __WINE_BUTTON_H
11#define __WINE_BUTTON_H
12
13#include "wingdi.h"
14
[10264]15#define BUTTONCLASSNAME "Button"
[347]16
[4]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 :-) */
21typedef struct
22{
23 WORD state; /* Current state */
[316]24 HFONT hFont; /* Button font (or 0 for system font) */
[4]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
[1725]34#define BUTTON_NSTATES 0x0F
35 /* undocumented flags */
36#define BUTTON_BTNPRESSED 0x40
37#define BUTTON_UNKNOWN2 0x20
38#define BUTTON_UNKNOWN3 0x10
[4]39
[1185]40//#define BUTTON_STATE(hwnd) ((WIN_FindWndPtr(hwnd))->wExtra[0])
[4]41
[1185]42//extern LRESULT WINAPI ButtonWndProc( HWND hWnd, UINT uMsg,
43// WPARAM wParam, LPARAM lParam );
[4]44
[347]45BOOL BUTTON_Register();
46BOOL BUTTON_Unregister();
[316]47
[4]48#endif /* __WINE_BUTTON_H */
[316]49
Note: See TracBrowser for help on using the repository browser.