Release 970525
[wine/multimedia.git] / include / combo.h
blob7060bdb14fb57684efa78979142d872d5331edcc
1 /*
2 * Combo box definitions
3 */
5 #ifndef __WINE_COMBO_H
6 #define __WINE_COMBO_H
8 #define ID_CB_LISTBOX 1000
9 #define ID_CB_EDIT 1001
11 /* Internal flags */
13 #define CBF_DROPPED 0x0001
14 #define CBF_BUTTONDOWN 0x0002
15 #define CBF_NOROLLUP 0x0004
16 #define CBF_MEASUREITEM 0x0008
17 #define CBF_FOCUSED 0x0010
18 #define CBF_CAPTURE 0x0020
19 #define CBF_EDIT 0x0040
20 #define CBF_NORESIZE 0x0080
21 #define CBF_EUI 0x8000
23 /* Combo state struct */
25 typedef struct
27 WND* self;
28 HWND32 owner;
29 UINT32 dwStyle;
30 HWND32 hWndEdit;
31 HWND32 hWndLBox;
32 UINT16 wState;
33 HFONT16 hFont;
34 RECT16 RectCombo;
35 RECT16 RectEdit;
36 RECT16 RectButton;
37 INT32 droppedWidth; /* last two are not used unless set */
38 INT32 editHeight; /* explicitly */
39 } HEADCOMBO,*LPHEADCOMBO;
42 * Note, that CBS_DROPDOWNLIST style is actually (CBS_SIMPLE | CBS_DROPDOWN)!
45 #define CB_GETTYPE( lphc ) ((lphc)->dwStyle & (CBS_DROPDOWNLIST))
46 #define CB_DISABLED( lphc ) ((lphc)->self->dwStyle & WS_DISABLED)
47 #define CB_OWNERDRAWN( lphc ) ((lphc)->dwStyle & (CBS_OWNERDRAWFIXED | CBS_OWNERDRAWVARIABLE))
48 #define CB_HASSTRINGS( lphc ) ((lphc)->dwStyle & CBS_HASSTRINGS)
49 #define CB_HWND( lphc ) ((lphc)->self->hwndSelf)
51 BOOL32 COMBO_FlipListbox( LPHEADCOMBO, BOOL32 );
52 HWND32 COMBO_GetLBWindow( WND* );
53 LRESULT COMBO_Directory( LPHEADCOMBO, UINT32, LPSTR, BOOL32 );
55 #endif /* __WINE_COMBO_H */