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

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

* empty log message *

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