ReactOS 0.4.15-dev-7674-gc0b4db1
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 */
62typedef struct
63{
64 HWND self;
65 HWND owner;
66 UINT dwStyle;
67 HWND hWndEdit;
68 HWND hWndLBox;
69 UINT wState;
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
91HRGN set_control_clipping( HDC hdc, const RECT *rect );
92
#define msg(x)
Definition: auth_time.c:54
HWND hWnd
Definition: settings.c:17
HFONT hFont
Definition: main.c:53
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
LRESULT WINAPI DesktopWndProcW(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: desktop.c:33
LRESULT WINAPI ScrollBarWndProcA(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrollbar.c:1466
LRESULT WINAPI ScrollBarWndProcW(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: scrollbar.c:1460
LRESULT WINAPI ButtonWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI IconTitleWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: icontitle.c:184
HRGN set_control_clipping(HDC hdc, const RECT *rect)
Definition: button.c:239
LRESULT WINAPI ListBoxWndProcW(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: listbox.c:3285
LRESULT WINAPI MDIClientWndProcW(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: mdi.c:1360
LRESULT WINAPI EditWndProc_common(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: edit.c:4854
LRESULT WINAPI StaticWndProc_common(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: static.c:337
LRESULT WINAPI DesktopWndProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: message.c:1307
LRESULT WINAPI GhostWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: ghost.c:610
LRESULT WINAPI ComboWndProc_common(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: combo.c:1814
LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: button.c:243
LRESULT WINAPI EditWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI EditWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI SwitchWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: appswitch.c:820
LRESULT WINAPI ComboWndProcA(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
struct HEADCOMBO * LPHEADCOMBO
LRESULT WINAPI ButtonWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI ListBoxWndProcA(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: listbox.c:3277
LRESULT WINAPI User32DefWindowProc(HWND, UINT, WPARAM, LPARAM, BOOL)
Definition: defwnd.c:317
LRESULT WINAPI StaticWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: static.c:585
LRESULT WINAPI MDIClientWndProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: mdi.c:1351
LRESULT WINAPI PopupMenuWndProcW(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: menu.c:297
LRESULT WINAPI MDIClientWndProc_common(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: mdi.c:1097
LRESULT WINAPI SwitchWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: appswitch.c:825
BOOL COMBO_FlipListbox(LPHEADCOMBO, BOOL, BOOL)
Definition: combo.c:1116
LRESULT WINAPI GhostWndProc_common(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: ghost.c:515
LRESULT WINAPI ListBoxWndProc_common(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
Definition: listbox.c:2614
LRESULT WINAPI GhostWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: ghost.c:604
BOOL WINAPI RegisterClientPFN(VOID)
Definition: regcontrol.c:143
LRESULT WINAPI PopupMenuWndProcA(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
Definition: menu.c:368
LRESULT WINAPI ComboWndProcW(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI StaticWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: static.c:576
static const WCHAR Message[]
Definition: register.c:74
unsigned int BOOL
Definition: ntddk_ex.h:94
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
RECT textRect
Definition: startmenu.cpp:1392
& rect
Definition: startmenu.cpp:1413
Definition: tftpd.h:60
int32_t INT
Definition: typedefs.h:58
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6