ReactOS  0.4.14-dev-368-gfa26425
controls.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef HBMMENU_CALLBACK
4 #define HBMMENU_CALLBACK ((HBITMAP) -1)
5 #endif
6 #ifndef HBMMENU_SYSTEM
7 #define HBMMENU_SYSTEM ((HBITMAP) 1)
8 #endif
9 #ifndef HBMMENU_MBAR_RESTORE
10 #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
11 #endif
12 #ifndef HBMMENU_MBAR_MINIMIZE
13 #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
14 #endif
15 #ifndef HBMMENU_MBAR_CLOSE
16 #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
17 #endif
18 #ifndef HBMMENU_MBAR_CLOSE_D
19 #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
20 #endif
21 #ifndef HBMMENU_MBAR_MINIMIZE_D
22 #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
23 #endif
24 #ifndef HBMMENU_POPUP_CLOSE
25 #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
26 #endif
27 #ifndef HBMMENU_POPUP_RESTORE
28 #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
29 #endif
30 #ifndef HBMMENU_POPUP_MAXIMIZE
31 #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
32 #endif
33 #ifndef HBMMENU_POPUP_MINIMIZE
34 #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
35 #endif
36 
37 /* combo box */
38 #define ID_CB_LISTBOX 1000
39 #define ID_CB_EDIT 1001
40 
41 /* Combo box message return values */
42 #define CB_OKAY 0
43 
44 /* internal flags */
45 #define CBF_DROPPED 0x0001
46 #define CBF_BUTTONDOWN 0x0002
47 #define CBF_NOROLLUP 0x0004
48 #define CBF_MEASUREITEM 0x0008
49 #define CBF_FOCUSED 0x0010
50 #define CBF_CAPTURE 0x0020
51 #define CBF_EDIT 0x0040
52 #define CBF_NORESIZE 0x0080
53 #define CBF_NOTIFY 0x0100
54 #define CBF_NOREDRAW 0x0200
55 #define CBF_SELCHANGE 0x0400
56 #define CBF_NOEDITNOTIFY 0x1000
57 #define CBF_NOLBSELECT 0x2000 /* do not change current selection */
58 #define CBF_BEENFOCUSED 0x4000 /* has it ever had focus */
59 #define CBF_EUI 0x8000
60 
61 /* combo state struct */
62 typedef struct
63 {
64  HWND self;
65  HWND owner;
66  UINT dwStyle;
67  HWND hWndEdit;
68  HWND hWndLBox;
69  UINT wState;
70  HFONT hFont;
71  RECT textRect;
72  RECT buttonRect;
73  RECT droppedRect;
74  INT droppedIndex;
75  INT fixedOwnerDrawHeight;
76  INT droppedWidth; /* last two are not used unless set */
77  INT editHeight; /* explicitly */
78  LONG UIState;
80 
81 /* Note, that CBS_DROPDOWNLIST style is actually (CBS_SIMPLE | CBS_DROPDOWN) */
82 #define CB_GETTYPE( lphc ) ((lphc)->dwStyle & (CBS_DROPDOWNLIST))
83 
85 
86 #define LB_INSERTSTRING_UPPER 0x1AA
87 #define LB_INSERTSTRING_LOWER 0x1AB
88 #define LB_ADDSTRING_UPPER 0x1AC
89 #define LB_ADDSTRING_LOWER 0x1AD
90 
91 HRGN set_control_clipping( HDC hdc, const RECT *rect );
92 
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
LRESULT WINAPI DesktopWndProcW(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: desktop.c:33
Definition: tftpd.h:59
LRESULT WINAPI ScrollBarWndProcA(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrollbar.c:1433
LRESULT WINAPI StaticWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: static.c:576
LRESULT WINAPI ComboWndProc_common(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: combo.c:1822
LRESULT WINAPI IconTitleWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: icontitle.c:184
static HDC
Definition: imagelist.c:92
HWND hWnd
Definition: settings.c:17
LRESULT WINAPI PopupMenuWndProcW(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: menu.c:305
UINT_PTR WPARAM
Definition: windef.h:207
HRGN set_control_clipping(HDC hdc, const RECT *rect)
Definition: button.c:239
LRESULT WINAPI ListBoxWndProc_common(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: listbox.c:2600
LRESULT WINAPI StaticWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: static.c:585
LRESULT WINAPI MDIClientWndProc_common(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: mdi.c:1101
int32_t INT
Definition: typedefs.h:56
& rect
Definition: startmenu.cpp:1413
WPARAM wParam
Definition: combotst.c:138
HFONT hFont
Definition: main.c:53
LRESULT WINAPI ListBoxWndProcA(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: listbox.c:3266
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
LRESULT WINAPI GhostWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: ghost.c:604
LRESULT WINAPI ScrollBarWndProcW(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrollbar.c:1427
RECT textRect
Definition: startmenu.cpp:1392
LRESULT WINAPI ListBoxWndProcW(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: listbox.c:3274
LONG_PTR LPARAM
Definition: windef.h:208
LRESULT WINAPI GhostWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: ghost.c:610
BOOL WINAPI RegisterClientPFN(VOID)
Definition: regcontrol.c:143
LRESULT WINAPI SwitchWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: appswitch.c:842
LRESULT WINAPI User32DefWindowProc(HWND, UINT, WPARAM, LPARAM, BOOL)
Definition: defwnd.c:316
#define WINAPI
Definition: msvc.h:8
LRESULT WINAPI MDIClientWndProcW(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: mdi.c:1364
LRESULT WINAPI StaticWndProc_common(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: static.c:337
CHAR Message[80]
Definition: alive.c:5
LRESULT WINAPI GhostWndProc_common(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: ghost.c:515
LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: button.c:243
HDC hdc
Definition: main.c:9
LRESULT WINAPI SwitchWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: appswitch.c:837
LRESULT WINAPI EditWndProc_common(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: edit.c:4743
LRESULT WINAPI MDIClientWndProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: mdi.c:1355
LRESULT WINAPI PopupMenuWndProcA(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
Definition: menu.c:376
LRESULT WINAPI EditWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
struct HEADCOMBO * LPHEADCOMBO
LRESULT WINAPI EditWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
unsigned int UINT
Definition: ndis.h:50
LRESULT WINAPI ButtonWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define msg(x)
Definition: auth_time.c:54
LRESULT WINAPI ButtonWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI DesktopWndProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: message.c:1306
LRESULT WINAPI ComboWndProcW(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
BOOL COMBO_FlipListbox(LPHEADCOMBO, BOOL, BOOL)
Definition: combo.c:1117
LONG_PTR LRESULT
Definition: windef.h:209
LPARAM lParam
Definition: combotst.c:139
LRESULT WINAPI ComboWndProcA(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)