source: trunk/include/win/combo.h@ 380

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

* empty log message *

File size: 2.1 KB
Line 
1/* $Id: combo.h,v 1.2 1999-07-24 12:37:53 sandervl Exp $ */
2
3/*
4 * Combo box definitions
5 */
6
7#ifndef __WINE_COMBO_H
8#define __WINE_COMBO_H
9
10#define LISTBOXCLASSNAME "LISTBOX"
11#define COMBOLBOXCLASSNAME "COMBOLBOX"
12#define COMBOBOXCLASSNAME "COMBOBOX"
13
14#define ID_CB_LISTBOX 1000
15#define ID_CB_EDIT 1001
16
17/* Internal flags */
18
19#define CBF_DROPPED 0x0001
20#define CBF_BUTTONDOWN 0x0002
21#define CBF_NOROLLUP 0x0004
22#define CBF_MEASUREITEM 0x0008
23#define CBF_FOCUSED 0x0010
24#define CBF_CAPTURE 0x0020
25#define CBF_EDIT 0x0040
26#define CBF_NORESIZE 0x0080
27#define CBF_NOTIFY 0x0100
28#define CBF_NOREDRAW 0x0200
29#define CBF_SELCHANGE 0x0400
30#define CBF_NOEDITNOTIFY 0x1000
31#define CBF_EUI 0x8000
32
33/* Combo state struct */
34
35typedef struct
36{
37 HWND hwndself;
38 HWND owner;
39 UINT dwStyle;
40 HWND hWndEdit;
41 HWND hWndLBox;
42 UINT wState;
43 HFONT hFont;
44 RECT textRect;
45 RECT buttonRect;
46 RECT droppedRect;
47 INT droppedIndex;
48 INT fixedOwnerDrawHeight;
49 INT droppedWidth; /* last two are not used unless set */
50 INT editHeight; /* explicitly */
51} HEADCOMBO,*LPHEADCOMBO;
52
53/*
54 * Note, that CBS_DROPDOWNLIST style is actually (CBS_SIMPLE | CBS_DROPDOWN)!
55 */
56
57#define CB_GETTYPE( lphc ) ((lphc)->dwStyle & (CBS_DROPDOWNLIST))
58#define CB_DISABLED( lphc ) (GetWindowLongA((lphc)->hwndself,GWL_STYLE) & WS_DISABLED)
59#define CB_OWNERDRAWN( lphc ) ((lphc)->dwStyle & (CBS_OWNERDRAWFIXED | CBS_OWNERDRAWVARIABLE))
60#define CB_HASSTRINGS( lphc ) ((lphc)->dwStyle & CBS_HASSTRINGS)
61#define CB_HWND( lphc ) ((lphc)->hwndself)
62
63BOOL COMBO_FlipListbox( LPHEADCOMBO, BOOL );
64HWND COMBO_GetLBWindow( HWND );
65LRESULT COMBO_Directory( LPHEADCOMBO, UINT, LPSTR, BOOL );
66
67BOOL LISTBOX_Register();
68BOOL LISTBOX_Unregister();
69BOOL COMBOLBOX_Register();
70BOOL COMBOLBOX_Unregister();
71
72BOOL COMBOBOX_Register();
73BOOL COMBOBOX_Unregister();
74
75#endif /* __WINE_COMBO_H */
76
Note: See TracBrowser for help on using the repository browser.