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

Last change on this file since 4 was 4, checked in by ktk, 26 years ago

Import

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