ReactOS 0.4.16-dev-306-g647d351
comctl32.h File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "commctrl.h"
#include "windowsx.h"
Include dependency graph for comctl32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HEADCOMBO
 
struct  COMCTL32_SysColor
 
struct  _SUBCLASSPROCS
 
struct  SUBCLASS_INFO
 

Macros

#define IDD_PROPSHEET   1006
 
#define IDD_WIZARD   1020
 
#define IDC_TABCONTROL   12320
 
#define IDC_APPLY_BUTTON   12321
 
#define IDC_BACK_BUTTON   12323
 
#define IDC_NEXT_BUTTON   12324
 
#define IDC_FINISH_BUTTON   12325
 
#define IDC_SUNKEN_LINE   12326
 
#define IDC_SUNKEN_LINEHEADER   12327
 
#define IDS_CLOSE   4160
 
#define IDD_TBCUSTOMIZE   200
 
#define IDC_AVAILBTN_LBOX   201
 
#define IDC_RESET_BTN   202
 
#define IDC_TOOLBARBTN_LBOX   203
 
#define IDC_REMOVE_BTN   204
 
#define IDC_HELP_BTN   205
 
#define IDC_MOVEUP_BTN   206
 
#define IDC_MOVEDN_BTN   207
 
#define IDS_SEPARATOR   1024
 
#define IDB_STD_SMALL   120
 
#define IDB_STD_LARGE   121
 
#define IDB_VIEW_SMALL   124
 
#define IDB_VIEW_LARGE   125
 
#define IDB_HIST_SMALL   130
 
#define IDB_HIST_LARGE   131
 
#define IDM_TODAY   4163
 
#define IDM_GOTODAY   4164
 
#define IDT_CHECK   401
 
#define IDB_CMDLINK   402
 
#define IDC_MOVEBUTTON   102
 
#define IDC_COPY   104
 
#define IDC_DIVIDER   106
 
#define IDC_DIVIDEROPEN   107
 
#define IDI_DRAGARROW   501
 
#define HKY_NONE   2048
 
#define IDI_TT_INFO_SM   22
 
#define IDI_TT_WARN_SM   25
 
#define IDI_TT_ERROR_SM   28
 
#define IDS_BUTTON_YES   3000
 
#define IDS_BUTTON_NO   3001
 
#define IDS_BUTTON_RETRY   3002
 
#define IDS_BUTTON_OK   3003
 
#define IDS_BUTTON_CANCEL   3004
 
#define IDS_BUTTON_CLOSE   3005
 
#define IDS_TD_EXPANDED   3020
 
#define IDS_TD_COLLAPSED   3021
 
#define WM_SYSTIMER   0x0118
 
#define COMCTL32_VERSION_MINOR   81
 

Typedefs

typedef struct HEADCOMBOLPHEADCOMBO
 
typedef struct _SUBCLASSPROCS SUBCLASSPROCS
 
typedef struct _SUBCLASSPROCSLPSUBCLASSPROCS
 
typedef struct SUBCLASS_INFOLPSUBCLASS_INFO
 

Enumerations

enum  combobox_state_flags {
  CBF_DROPPED = 0x0001 , CBF_BUTTONDOWN = 0x0002 , CBF_NOROLLUP = 0x0004 , CBF_MEASUREITEM = 0x0008 ,
  CBF_FOCUSED = 0x0010 , CBF_CAPTURE = 0x0020 , CBF_EDIT = 0x0040 , CBF_NORESIZE = 0x0080 ,
  CBF_NOTIFY = 0x0100 , CBF_NOREDRAW = 0x0200 , CBF_SELCHANGE = 0x0400 , CBF_HOT = 0x0800 ,
  CBF_NOEDITNOTIFY = 0x1000 , CBF_NOLBSELECT = 0x2000 , CBF_BEENFOCUSED = 0x4000 , CBF_EUI = 0x8000
}
 

Functions

BOOL COMBO_FlipListbox (HEADCOMBO *lphc, BOOL ok, BOOL bRedrawButton) DECLSPEC_HIDDEN
 
HWND COMCTL32_CreateToolTip (HWND) DECLSPEC_HIDDEN
 
VOID COMCTL32_RefreshSysColors (void) DECLSPEC_HIDDEN
 
void COMCTL32_DrawInsertMark (HDC hDC, const RECT *lpRect, COLORREF clrInsertMark, BOOL bHorizontal) DECLSPEC_HIDDEN
 
void COMCTL32_EnsureBitmapSize (HBITMAP *pBitmap, int cxMinWidth, int cyMinHeight, COLORREF crBackground) DECLSPEC_HIDDEN
 
void COMCTL32_GetFontMetrics (HFONT hFont, TEXTMETRICW *ptm) DECLSPEC_HIDDEN
 
BOOL COMCTL32_IsReflectedMessage (UINT uMsg) DECLSPEC_HIDDEN
 
INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN
 
INT Str_GetPtrAtoW (LPCSTR lpSrc, LPWSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN
 
BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc) DECLSPEC_HIDDEN
 
BOOL Str_SetPtrWtoA (LPSTR *lppDest, LPCWSTR lpSrc) DECLSPEC_HIDDEN
 
LPVOID WINAPI Alloc (DWORD) __WINE_ALLOC_SIZE(1)
 
LPVOID WINAPI ReAlloc (LPVOID, DWORD) __WINE_ALLOC_SIZE(2)
 
BOOL WINAPI Free (LPVOID)
 
DWORD WINAPI GetSize (LPVOID)
 
INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT)
 
INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT)
 
LRESULT WINAPI SetPathWordBreakProc (HWND hwnd, BOOL bSet)
 
BOOL WINAPI MirrorIcon (HICON *phicon1, HICON *phicon2)
 
HRGN set_control_clipping (HDC hdc, const RECT *rect) DECLSPEC_HIDDEN
 
void ANIMATE_Register (void) DECLSPEC_HIDDEN
 
void ANIMATE_Unregister (void) DECLSPEC_HIDDEN
 
void BUTTON_Register (void) DECLSPEC_HIDDEN
 
void COMBO_Register (void) DECLSPEC_HIDDEN
 
void COMBOEX_Register (void) DECLSPEC_HIDDEN
 
void COMBOEX_Unregister (void) DECLSPEC_HIDDEN
 
void COMBOLBOX_Register (void) DECLSPEC_HIDDEN
 
void DATETIME_Register (void) DECLSPEC_HIDDEN
 
void DATETIME_Unregister (void) DECLSPEC_HIDDEN
 
void EDIT_Register (void) DECLSPEC_HIDDEN
 
void FLATSB_Register (void) DECLSPEC_HIDDEN
 
void FLATSB_Unregister (void) DECLSPEC_HIDDEN
 
void HEADER_Register (void) DECLSPEC_HIDDEN
 
void HEADER_Unregister (void) DECLSPEC_HIDDEN
 
void HOTKEY_Register (void) DECLSPEC_HIDDEN
 
void HOTKEY_Unregister (void) DECLSPEC_HIDDEN
 
void IPADDRESS_Register (void) DECLSPEC_HIDDEN
 
void IPADDRESS_Unregister (void) DECLSPEC_HIDDEN
 
void LISTBOX_Register (void) DECLSPEC_HIDDEN
 
void LISTVIEW_Register (void) DECLSPEC_HIDDEN
 
void LISTVIEW_Unregister (void) DECLSPEC_HIDDEN
 
void MONTHCAL_Register (void) DECLSPEC_HIDDEN
 
void MONTHCAL_Unregister (void) DECLSPEC_HIDDEN
 
void NATIVEFONT_Register (void) DECLSPEC_HIDDEN
 
void NATIVEFONT_Unregister (void) DECLSPEC_HIDDEN
 
void PAGER_Register (void) DECLSPEC_HIDDEN
 
void PAGER_Unregister (void) DECLSPEC_HIDDEN
 
void PROGRESS_Register (void) DECLSPEC_HIDDEN
 
void PROGRESS_Unregister (void) DECLSPEC_HIDDEN
 
void REBAR_Register (void) DECLSPEC_HIDDEN
 
void REBAR_Unregister (void) DECLSPEC_HIDDEN
 
void STATIC_Register (void) DECLSPEC_HIDDEN
 
void STATUS_Register (void) DECLSPEC_HIDDEN
 
void STATUS_Unregister (void) DECLSPEC_HIDDEN
 
void SYSLINK_Register (void) DECLSPEC_HIDDEN
 
void SYSLINK_Unregister (void) DECLSPEC_HIDDEN
 
void TAB_Register (void) DECLSPEC_HIDDEN
 
void TAB_Unregister (void) DECLSPEC_HIDDEN
 
void TOOLBAR_Register (void) DECLSPEC_HIDDEN
 
void TOOLBAR_Unregister (void) DECLSPEC_HIDDEN
 
void TOOLTIPS_Register (void) DECLSPEC_HIDDEN
 
void TOOLTIPS_Unregister (void) DECLSPEC_HIDDEN
 
void TRACKBAR_Register (void) DECLSPEC_HIDDEN
 
void TRACKBAR_Unregister (void) DECLSPEC_HIDDEN
 
void TREEVIEW_Register (void) DECLSPEC_HIDDEN
 
void TREEVIEW_Unregister (void) DECLSPEC_HIDDEN
 
void UPDOWN_Register (void) DECLSPEC_HIDDEN
 
void UPDOWN_Unregister (void) DECLSPEC_HIDDEN
 
int MONTHCAL_MonthLength (int month, int year) DECLSPEC_HIDDEN
 
int MONTHCAL_CalculateDayOfWeek (SYSTEMTIME *date, BOOL inplace) DECLSPEC_HIDDEN
 
LONG MONTHCAL_CompareSystemTime (const SYSTEMTIME *first, const SYSTEMTIME *second) DECLSPEC_HIDDEN
 
void THEMING_Initialize (void) DECLSPEC_HIDDEN
 
void THEMING_Uninitialize (void) DECLSPEC_HIDDEN
 
LRESULT THEMING_CallOriginalClass (HWND, UINT, WPARAM, LPARAM) DECLSPEC_HIDDEN
 

Variables

HMODULE COMCTL32_hModule DECLSPEC_HIDDEN
 

Macro Definition Documentation

◆ COMCTL32_VERSION_MINOR

#define COMCTL32_VERSION_MINOR   81

Definition at line 205 of file comctl32.h.

◆ HKY_NONE

#define HKY_NONE   2048

Definition at line 106 of file comctl32.h.

◆ IDB_CMDLINK

#define IDB_CMDLINK   402

Definition at line 92 of file comctl32.h.

◆ IDB_HIST_LARGE

#define IDB_HIST_LARGE   131

Definition at line 82 of file comctl32.h.

◆ IDB_HIST_SMALL

#define IDB_HIST_SMALL   130

Definition at line 81 of file comctl32.h.

◆ IDB_STD_LARGE

#define IDB_STD_LARGE   121

Definition at line 78 of file comctl32.h.

◆ IDB_STD_SMALL

#define IDB_STD_SMALL   120

Definition at line 77 of file comctl32.h.

◆ IDB_VIEW_LARGE

#define IDB_VIEW_LARGE   125

Definition at line 80 of file comctl32.h.

◆ IDB_VIEW_SMALL

#define IDB_VIEW_SMALL   124

Definition at line 79 of file comctl32.h.

◆ IDC_APPLY_BUTTON

#define IDC_APPLY_BUTTON   12321

Definition at line 54 of file comctl32.h.

◆ IDC_AVAILBTN_LBOX

#define IDC_AVAILBTN_LBOX   201

Definition at line 66 of file comctl32.h.

◆ IDC_BACK_BUTTON

#define IDC_BACK_BUTTON   12323

Definition at line 55 of file comctl32.h.

◆ IDC_COPY

#define IDC_COPY   104

Definition at line 97 of file comctl32.h.

◆ IDC_DIVIDER

#define IDC_DIVIDER   106

Definition at line 98 of file comctl32.h.

◆ IDC_DIVIDEROPEN

#define IDC_DIVIDEROPEN   107

Definition at line 99 of file comctl32.h.

◆ IDC_FINISH_BUTTON

#define IDC_FINISH_BUTTON   12325

Definition at line 57 of file comctl32.h.

◆ IDC_HELP_BTN

#define IDC_HELP_BTN   205

Definition at line 70 of file comctl32.h.

◆ IDC_MOVEBUTTON

#define IDC_MOVEBUTTON   102

Definition at line 96 of file comctl32.h.

◆ IDC_MOVEDN_BTN

#define IDC_MOVEDN_BTN   207

Definition at line 72 of file comctl32.h.

◆ IDC_MOVEUP_BTN

#define IDC_MOVEUP_BTN   206

Definition at line 71 of file comctl32.h.

◆ IDC_NEXT_BUTTON

#define IDC_NEXT_BUTTON   12324

Definition at line 56 of file comctl32.h.

◆ IDC_REMOVE_BTN

#define IDC_REMOVE_BTN   204

Definition at line 69 of file comctl32.h.

◆ IDC_RESET_BTN

#define IDC_RESET_BTN   202

Definition at line 67 of file comctl32.h.

◆ IDC_SUNKEN_LINE

#define IDC_SUNKEN_LINE   12326

Definition at line 58 of file comctl32.h.

◆ IDC_SUNKEN_LINEHEADER

#define IDC_SUNKEN_LINEHEADER   12327

Definition at line 59 of file comctl32.h.

◆ IDC_TABCONTROL

#define IDC_TABCONTROL   12320

Definition at line 53 of file comctl32.h.

◆ IDC_TOOLBARBTN_LBOX

#define IDC_TOOLBARBTN_LBOX   203

Definition at line 68 of file comctl32.h.

◆ IDD_PROPSHEET

#define IDD_PROPSHEET   1006

Definition at line 50 of file comctl32.h.

◆ IDD_TBCUSTOMIZE

#define IDD_TBCUSTOMIZE   200

Definition at line 64 of file comctl32.h.

◆ IDD_WIZARD

#define IDD_WIZARD   1020

Definition at line 51 of file comctl32.h.

◆ IDI_DRAGARROW

#define IDI_DRAGARROW   501

Definition at line 103 of file comctl32.h.

◆ IDI_TT_ERROR_SM

#define IDI_TT_ERROR_SM   28

Definition at line 111 of file comctl32.h.

◆ IDI_TT_INFO_SM

#define IDI_TT_INFO_SM   22

Definition at line 109 of file comctl32.h.

◆ IDI_TT_WARN_SM

#define IDI_TT_WARN_SM   25

Definition at line 110 of file comctl32.h.

◆ IDM_GOTODAY

#define IDM_GOTODAY   4164

Definition at line 85 of file comctl32.h.

◆ IDM_TODAY

#define IDM_TODAY   4163

Definition at line 84 of file comctl32.h.

◆ IDS_BUTTON_CANCEL

#define IDS_BUTTON_CANCEL   3004

Definition at line 118 of file comctl32.h.

◆ IDS_BUTTON_CLOSE

#define IDS_BUTTON_CLOSE   3005

Definition at line 119 of file comctl32.h.

◆ IDS_BUTTON_NO

#define IDS_BUTTON_NO   3001

Definition at line 115 of file comctl32.h.

◆ IDS_BUTTON_OK

#define IDS_BUTTON_OK   3003

Definition at line 117 of file comctl32.h.

◆ IDS_BUTTON_RETRY

#define IDS_BUTTON_RETRY   3002

Definition at line 116 of file comctl32.h.

◆ IDS_BUTTON_YES

#define IDS_BUTTON_YES   3000

Definition at line 114 of file comctl32.h.

◆ IDS_CLOSE

#define IDS_CLOSE   4160

Definition at line 61 of file comctl32.h.

◆ IDS_SEPARATOR

#define IDS_SEPARATOR   1024

Definition at line 74 of file comctl32.h.

◆ IDS_TD_COLLAPSED

#define IDS_TD_COLLAPSED   3021

Definition at line 122 of file comctl32.h.

◆ IDS_TD_EXPANDED

#define IDS_TD_EXPANDED   3020

Definition at line 121 of file comctl32.h.

◆ IDT_CHECK

#define IDT_CHECK   401

Definition at line 89 of file comctl32.h.

◆ WM_SYSTIMER

#define WM_SYSTIMER   0x0118

Definition at line 125 of file comctl32.h.

Typedef Documentation

◆ LPHEADCOMBO

◆ LPSUBCLASS_INFO

◆ LPSUBCLASSPROCS

◆ SUBCLASSPROCS

Enumeration Type Documentation

◆ combobox_state_flags

Enumerator
CBF_DROPPED 
CBF_BUTTONDOWN 
CBF_NOROLLUP 
CBF_MEASUREITEM 
CBF_FOCUSED 
CBF_CAPTURE 
CBF_EDIT 
CBF_NORESIZE 
CBF_NOTIFY 
CBF_NOREDRAW 
CBF_SELCHANGE 
CBF_HOT 
CBF_NOEDITNOTIFY 
CBF_NOLBSELECT 
CBF_BEENFOCUSED 
CBF_EUI 

Definition at line 128 of file comctl32.h.

129{
130 CBF_DROPPED = 0x0001,
131 CBF_BUTTONDOWN = 0x0002,
132 CBF_NOROLLUP = 0x0004,
133 CBF_MEASUREITEM = 0x0008,
134 CBF_FOCUSED = 0x0010,
135 CBF_CAPTURE = 0x0020,
136 CBF_EDIT = 0x0040,
137 CBF_NORESIZE = 0x0080,
138 CBF_NOTIFY = 0x0100,
139 CBF_NOREDRAW = 0x0200,
140 CBF_SELCHANGE = 0x0400,
141 CBF_HOT = 0x0800,
142 CBF_NOEDITNOTIFY = 0x1000,
143 CBF_NOLBSELECT = 0x2000, /* do not change current selection */
144 CBF_BEENFOCUSED = 0x4000, /* has it ever had focus */
145 CBF_EUI = 0x8000,
146};
@ CBF_NOREDRAW
Definition: comctl32.h:139
@ CBF_NOLBSELECT
Definition: comctl32.h:143
@ CBF_NORESIZE
Definition: comctl32.h:137
@ CBF_NOROLLUP
Definition: comctl32.h:132
@ CBF_BUTTONDOWN
Definition: comctl32.h:131
@ CBF_SELCHANGE
Definition: comctl32.h:140
@ CBF_FOCUSED
Definition: comctl32.h:134
@ CBF_MEASUREITEM
Definition: comctl32.h:133
@ CBF_NOTIFY
Definition: comctl32.h:138
@ CBF_HOT
Definition: comctl32.h:141
@ CBF_EDIT
Definition: comctl32.h:136
@ CBF_BEENFOCUSED
Definition: comctl32.h:144
@ CBF_EUI
Definition: comctl32.h:145
@ CBF_CAPTURE
Definition: comctl32.h:135
@ CBF_NOEDITNOTIFY
Definition: comctl32.h:142
@ CBF_DROPPED
Definition: comctl32.h:130

Function Documentation

◆ Alloc()

LPVOID WINAPI Alloc ( DWORD  dwSize)

Definition at line 68 of file comctl32undoc.c.

69{
71}
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1390
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
#define LMEM_ZEROINIT
Definition: winbase.h:401

Referenced by AddMRUData(), AddMRUStringA(), create_mru_list(), CreateMRUListLazyA(), CreateMRUListLazyW(), FindMRUData(), and FindMRUStringA().

◆ ANIMATE_Register()

void ANIMATE_Register ( void  )

Definition at line 965 of file animate.c.

966{
967 WNDCLASSW wndClass;
968
969 ZeroMemory(&wndClass, sizeof(WNDCLASSW));
970 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
972 wndClass.cbClsExtra = 0;
973 wndClass.cbWndExtra = sizeof(ANIMATE_INFO *);
974 wndClass.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
975 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
976 wndClass.lpszClassName = ANIMATE_CLASSW;
977
978 RegisterClassW(&wndClass);
979}
static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: animate.c:876
#define ANIMATE_CLASSW
Definition: commctrl.h:4146
LPCWSTR lpszClassName
Definition: winuser.h:3188
HBRUSH hbrBackground
Definition: winuser.h:3186
int cbClsExtra
Definition: winuser.h:3181
UINT style
Definition: winuser.h:3179
WNDPROC lpfnWndProc
Definition: winuser.h:3180
int cbWndExtra
Definition: winuser.h:3182
HCURSOR hCursor
Definition: winuser.h:3185
#define ZeroMemory
Definition: winbase.h:1737
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
#define IDC_ARROW
Definition: winuser.h:687
#define CS_DBLCLKS
Definition: winuser.h:651
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2157
#define CS_GLOBALCLASS
Definition: winuser.h:652
#define COLOR_BTNFACE
Definition: winuser.h:931
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by DllMain().

◆ ANIMATE_Unregister()

void ANIMATE_Unregister ( void  )

Definition at line 982 of file animate.c.

983{
985}
#define NULL
Definition: types.h:112
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)

Referenced by DllMain().

◆ BUTTON_Register()

void BUTTON_Register ( void  )

Definition at line 2223 of file button.c.

2224{
2225 WNDCLASSW wndClass;
2226
2227 memset(&wndClass, 0, sizeof(wndClass));
2229 wndClass.lpfnWndProc = BUTTON_WindowProc;
2230 wndClass.cbClsExtra = 0;
2231 wndClass.cbWndExtra = sizeof(BUTTON_INFO *);
2232 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
2233 wndClass.hbrBackground = NULL;
2234 wndClass.lpszClassName = WC_BUTTONW;
2235 RegisterClassW(&wndClass);
2236}
static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: button.c:598
#define WC_BUTTONW
Definition: commctrl.h:4628
#define memset(x, y, z)
Definition: compat.h:39
#define CS_VREDRAW
Definition: winuser.h:658
#define CS_HREDRAW
Definition: winuser.h:653
#define CS_PARENTDC
Definition: winuser.h:656
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ COMBO_FlipListbox()

BOOL COMBO_FlipListbox ( HEADCOMBO lphc,
BOOL  ok,
BOOL  bRedrawButton 
)

◆ COMBO_Register()

void COMBO_Register ( void  )

Definition at line 2116 of file combo.c.

2117{
2118 WNDCLASSW wndClass;
2119
2120 memset(&wndClass, 0, sizeof(wndClass));
2122 wndClass.lpfnWndProc = COMBO_WindowProc;
2123 wndClass.cbClsExtra = 0;
2124 wndClass.cbWndExtra = sizeof(HEADCOMBO *);
2125 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
2126 wndClass.hbrBackground = NULL;
2127 wndClass.lpszClassName = WC_COMBOBOXW;
2128 RegisterClassW(&wndClass);
2129}
static LRESULT CALLBACK COMBO_WindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: combo.c:1659
#define WC_COMBOBOXW
Definition: commctrl.h:4722

Referenced by DllMain().

◆ COMBOEX_Register()

void COMBOEX_Register ( void  )

Definition at line 2168 of file comboex.c.

2172{
2173 WNDCLASSW wndClass;
2174
2175 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2176 wndClass.style = CS_GLOBALCLASS;
2178 wndClass.cbClsExtra = 0;
2179 wndClass.cbWndExtra = sizeof(COMBOEX_INFO *);
2180 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2181 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
2182 wndClass.lpszClassName = WC_COMBOBOXEXW;
static LRESULT WINAPI COMBOEX_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: comboex.c:1989
#define WC_COMBOBOXEXW
Definition: commctrl.h:3786
#define COLOR_WINDOW
Definition: winuser.h:921

Referenced by DllMain().

◆ COMBOEX_Unregister()

void COMBOEX_Unregister ( void  )

Definition at line 2185 of file comboex.c.

Referenced by DllMain().

◆ COMBOLBOX_Register()

void COMBOLBOX_Register ( void  )

Definition at line 3175 of file listbox.c.

3176{
3177 static const WCHAR combolboxW[] = {'C','o','m','b','o','L','B','o','x',0};
3178 WNDCLASSW wndClass;
3179
3180 memset(&wndClass, 0, sizeof(wndClass));
3183 wndClass.cbClsExtra = 0;
3184 wndClass.cbWndExtra = sizeof(LB_DESCR *);
3185 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
3186 wndClass.hbrBackground = NULL;
3187 wndClass.lpszClassName = combolboxW;
3188 RegisterClassW(&wndClass);
3189}
static LRESULT CALLBACK LISTBOX_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: listbox.c:2669
static const WCHAR combolboxW[]
Definition: listbox.c:141
#define CS_DROPSHADOW
Definition: winuser.h:660
#define CS_SAVEBITS
Definition: winuser.h:657
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by DllMain().

◆ COMCTL32_CreateToolTip()

HWND COMCTL32_CreateToolTip ( HWND  hwndOwner)

Definition at line 1551 of file commctrl.c.

1552{
1553 HWND hwndToolTip;
1554
1555 hwndToolTip = CreateWindowExW(0, TOOLTIPS_CLASSW, NULL, WS_POPUP,
1557 CW_USEDEFAULT, CW_USEDEFAULT, hwndOwner,
1558 0, 0, 0);
1559
1560 /* Send NM_TOOLTIPSCREATED notification */
1561 if (hwndToolTip)
1562 {
1563 NMTOOLTIPSCREATED nmttc;
1564 /* true owner can be different if hwndOwner is a child window */
1565 HWND hwndTrueOwner = GetWindow(hwndToolTip, GW_OWNER);
1566 nmttc.hdr.hwndFrom = hwndTrueOwner;
1567 nmttc.hdr.idFrom = GetWindowLongPtrW(hwndTrueOwner, GWLP_ID);
1568 nmttc.hdr.code = NM_TOOLTIPSCREATED;
1569 nmttc.hwndToolTips = hwndToolTip;
1570
1571 SendMessageW(GetParent(hwndTrueOwner), WM_NOTIFY,
1572 GetWindowLongPtrW(hwndTrueOwner, GWLP_ID), (LPARAM)&nmttc);
1573 }
1574
1575 return hwndToolTip;
1576}
#define WS_POPUP
Definition: pedump.c:616
#define TOOLTIPS_CLASSW
Definition: commctrl.h:1707
#define NM_TOOLTIPSCREATED
Definition: commctrl.h:144
#define WM_NOTIFY
Definition: richedit.h:61
UINT_PTR idFrom
Definition: winuser.h:3161
UINT code
Definition: winuser.h:3162
HWND hwndFrom
Definition: winuser.h:3160
LONG_PTR LPARAM
Definition: windef.h:208
#define GW_OWNER
Definition: winuser.h:769
#define GetWindowLongPtrW
Definition: winuser.h:4832
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define CW_USEDEFAULT
Definition: winuser.h:225
HWND WINAPI GetParent(_In_ HWND)
HWND WINAPI GetWindow(_In_ HWND, _In_ UINT)
#define GWLP_ID
Definition: winuser.h:863
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by LISTVIEW_WindowProc(), and TREEVIEW_StyleChanged().

◆ COMCTL32_DrawInsertMark()

void COMCTL32_DrawInsertMark ( HDC  hDC,
const RECT lpRect,
COLORREF  clrInsertMark,
BOOL  bHorizontal 
)

Definition at line 1633 of file commctrl.c.

1634{
1635 HPEN hPen = CreatePen(PS_SOLID, 1, clrInsertMark);
1636 HPEN hOldPen;
1637 static const DWORD adwPolyPoints[] = {4,4,4};
1638 LONG lCentre = (bHorizontal ?
1639 lpRect->top + (lpRect->bottom - lpRect->top)/2 :
1640 lpRect->left + (lpRect->right - lpRect->left)/2);
1641 LONG l1 = (bHorizontal ? lpRect->left : lpRect->top);
1642 LONG l2 = (bHorizontal ? lpRect->right : lpRect->bottom);
1643 const POINT aptInsertMark[] =
1644 {
1645 /* top (V) or left (H) arrow */
1646 {lCentre , l1 + 2},
1647 {lCentre - 2, l1 },
1648 {lCentre + 3, l1 },
1649 {lCentre + 1, l1 + 2},
1650 /* middle line */
1651 {lCentre , l2 - 2},
1652 {lCentre , l1 - 1},
1653 {lCentre + 1, l1 - 1},
1654 {lCentre + 1, l2 - 2},
1655 /* bottom (V) or right (H) arrow */
1656 {lCentre , l2 - 3},
1657 {lCentre - 2, l2 - 1},
1658 {lCentre + 3, l2 - 1},
1659 {lCentre + 1, l2 - 3},
1660 };
1661 hOldPen = SelectObject(hDC, hPen);
1662 PolyPolyline(hDC, aptInsertMark, adwPolyPoints, ARRAY_SIZE(adwPolyPoints));
1663 SelectObject(hDC, hOldPen);
1664 DeleteObject(hPen);
1665}
static HDC hDC
Definition: 3dtext.c:33
#define ARRAY_SIZE(A)
Definition: main.h:20
unsigned long DWORD
Definition: ntddk_ex.h:95
pKey DeleteObject()
long LONG
Definition: pedump.c:60
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1546
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
#define PS_SOLID
Definition: wingdi.h:586
BOOL WINAPI PolyPolyline(_In_ HDC hdc, _In_ const POINT *apt, _In_reads_(csz) const DWORD *asz, _In_ DWORD csz)

Referenced by TOOLBAR_Refresh().

◆ COMCTL32_EnsureBitmapSize()

void COMCTL32_EnsureBitmapSize ( HBITMAP pBitmap,
int  cxMinWidth,
int  cyMinHeight,
COLORREF  crBackground 
)

Definition at line 1685 of file commctrl.c.

1686{
1687 int cxNew, cyNew;
1688 BITMAP bmp;
1689 HBITMAP hNewBitmap;
1690 HBITMAP hNewDCBitmap, hOldDCBitmap;
1691 HBRUSH hNewDCBrush;
1692 HDC hdcNew, hdcOld;
1693
1694 if (!GetObjectW(*pBitmap, sizeof(BITMAP), &bmp))
1695 return;
1696 cxNew = (cxMinWidth > bmp.bmWidth ? cxMinWidth : bmp.bmWidth);
1697 cyNew = (cyMinHeight > bmp.bmHeight ? cyMinHeight : bmp.bmHeight);
1698 if (cxNew == bmp.bmWidth && cyNew == bmp.bmHeight)
1699 return;
1700
1701 hdcNew = CreateCompatibleDC(NULL);
1702 hNewBitmap = CreateBitmap(cxNew, cyNew, bmp.bmPlanes, bmp.bmBitsPixel, NULL);
1703 hNewDCBitmap = SelectObject(hdcNew, hNewBitmap);
1704 hNewDCBrush = SelectObject(hdcNew, CreateSolidBrush(crBackground));
1705
1706 hdcOld = CreateCompatibleDC(NULL);
1707 hOldDCBitmap = SelectObject(hdcOld, *pBitmap);
1708
1709 BitBlt(hdcNew, 0, 0, bmp.bmWidth, bmp.bmHeight, hdcOld, 0, 0, SRCCOPY);
1710 if (bmp.bmWidth < cxMinWidth)
1711 PatBlt(hdcNew, bmp.bmWidth, 0, cxNew, bmp.bmHeight, PATCOPY);
1712 if (bmp.bmHeight < cyMinHeight)
1713 PatBlt(hdcNew, 0, bmp.bmHeight, bmp.bmWidth, cyNew, PATCOPY);
1714 if (bmp.bmWidth < cxMinWidth && bmp.bmHeight < cyMinHeight)
1715 PatBlt(hdcNew, bmp.bmWidth, bmp.bmHeight, cxNew, cyNew, PATCOPY);
1716
1717 SelectObject(hdcNew, hNewDCBitmap);
1718 DeleteObject(SelectObject(hdcNew, hNewDCBrush));
1719 DeleteDC(hdcNew);
1720 SelectObject(hdcOld, hOldDCBitmap);
1721 DeleteDC(hdcOld);
1722
1723 DeleteObject(*pBitmap);
1724 *pBitmap = hNewBitmap;
1725 return;
1726}
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
Definition: common.c:57
BITMAP bmp
Definition: alphablend.c:62
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:88
Definition: bl.h:1331
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define SRCCOPY
Definition: wingdi.h:333
#define PATCOPY
Definition: wingdi.h:335
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)

Referenced by TOOLBAR_AddBitmapToImageList().

◆ COMCTL32_GetFontMetrics()

void COMCTL32_GetFontMetrics ( HFONT  hFont,
TEXTMETRICW ptm 
)

Definition at line 1728 of file commctrl.c.

1729{
1730 HDC hdc = GetDC(NULL);
1731 HFONT hOldFont;
1732
1733 hOldFont = SelectObject(hdc, hFont);
1734 GetTextMetricsW(hdc, ptm);
1735 SelectObject(hdc, hOldFont);
1736 ReleaseDC(NULL, hdc);
1737}
HFONT hFont
Definition: main.c:53
HDC hdc
Definition: main.c:9
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
Definition: text.c:221
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)

Referenced by STATUSBAR_ComputeHeight().

◆ COMCTL32_IsReflectedMessage()

BOOL COMCTL32_IsReflectedMessage ( UINT  uMsg)

Definition at line 1755 of file commctrl.c.

1756{
1757 switch (uMsg)
1758 {
1759 case OCM__BASE + WM_COMMAND:
1767 case OCM__BASE + WM_DRAWITEM:
1769 case OCM__BASE + WM_DELETEITEM:
1770 case OCM__BASE + WM_VKEYTOITEM:
1771 case OCM__BASE + WM_CHARTOITEM:
1773 case OCM__BASE + WM_HSCROLL:
1774 case OCM__BASE + WM_VSCROLL:
1776 case OCM__BASE + WM_NOTIFY:
1777 return TRUE;
1778 default:
1779 return FALSE;
1780 }
1781}
#define OCM__BASE
Definition: commctrl.c:1740
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1775
#define WM_HSCROLL
Definition: winuser.h:1746
#define WM_CHARTOITEM
Definition: winuser.h:1652
#define WM_VSCROLL
Definition: winuser.h:1747
#define WM_COMMAND
Definition: winuser.h:1743
#define WM_CTLCOLORSCROLLBAR
Definition: winuser.h:1774
#define WM_DELETEITEM
Definition: winuser.h:1650
#define WM_CTLCOLORMSGBOX
Definition: winuser.h:1769
#define WM_DRAWITEM
Definition: winuser.h:1648
#define WM_CTLCOLORBTN
Definition: winuser.h:1772
#define WM_MEASUREITEM
Definition: winuser.h:1649
#define WM_CTLCOLORLISTBOX
Definition: winuser.h:1771
#define WM_COMPAREITEM
Definition: winuser.h:1658
#define WM_PARENTNOTIFY
Definition: winuser.h:1806
#define WM_CTLCOLOREDIT
Definition: winuser.h:1770
#define WM_CTLCOLORDLG
Definition: winuser.h:1773
#define WM_VKEYTOITEM
Definition: winuser.h:1651

Referenced by ANIMATE_WindowProc(), COMBOEX_WindowProc(), DATETIME_WindowProc(), FlatSB_WindowProc(), HEADER_WindowProc(), HOTKEY_WindowProc(), IPADDRESS_WindowProc(), LISTVIEW_WindowProc(), MONTHCAL_WindowProc(), NATIVEFONT_WindowProc(), ProgressWindowProc(), REBAR_WindowProc(), StatusWindowProc(), SysLinkWindowProc(), TAB_WindowProc(), ToolbarWindowProc(), TOOLTIPS_WindowProc(), TRACKBAR_WindowProc(), TREEVIEW_WindowProc(), and UpDownWindowProc().

◆ COMCTL32_RefreshSysColors()

VOID COMCTL32_RefreshSysColors ( void  )

Definition at line 1593 of file commctrl.c.

1594{
1612}
COMCTL32_SysColor comctl32_color
Definition: commctrl.c:82
COLORREF clrHighlightText
Definition: comctl32.h:176
COLORREF clrBtnShadow
Definition: comctl32.h:172
COLORREF clrBtnText
Definition: comctl32.h:173
COLORREF clrBtnFace
Definition: comctl32.h:174
COLORREF clrInfoText
Definition: comctl32.h:187
COLORREF clrWindow
Definition: comctl32.h:182
COLORREF clr3dFace
Definition: comctl32.h:181
COLORREF clrActiveCaption
Definition: comctl32.h:185
COLORREF clrBtnHighlight
Definition: comctl32.h:171
COLORREF clr3dShadow
Definition: comctl32.h:179
COLORREF clrGrayText
Definition: comctl32.h:184
COLORREF clr3dDkShadow
Definition: comctl32.h:180
COLORREF clrInfoBk
Definition: comctl32.h:186
COLORREF clrHotTrackingColor
Definition: comctl32.h:177
COLORREF clrWindowText
Definition: comctl32.h:183
COLORREF clr3dHilight
Definition: comctl32.h:178
COLORREF clrHighlight
Definition: comctl32.h:175
DWORD WINAPI GetSysColor(_In_ int)
#define COLOR_BTNTEXT
Definition: winuser.h:936
#define COLOR_INFOBK
Definition: winuser.h:945
#define COLOR_GRAYTEXT
Definition: winuser.h:935
#define COLOR_WINDOWTEXT
Definition: winuser.h:924
#define COLOR_HIGHLIGHT
Definition: winuser.h:929
#define COLOR_ACTIVECAPTION
Definition: winuser.h:918
#define COLOR_3DDKSHADOW
Definition: winuser.h:942
#define COLOR_3DSHADOW
Definition: winuser.h:934
#define COLOR_INFOTEXT
Definition: winuser.h:944
#define COLOR_HOTLIGHT
Definition: winuser.h:946
#define COLOR_HIGHLIGHTTEXT
Definition: winuser.h:930
#define COLOR_BTNSHADOW
Definition: winuser.h:933
#define COLOR_3DHILIGHT
Definition: winuser.h:940
#define COLOR_BTNHIGHLIGHT
Definition: winuser.h:938
#define COLOR_3DFACE
Definition: winuser.h:932

Referenced by COMBOEX_WindowProc(), DllMain(), HEADER_WindowProc(), IPADDRESS_WindowProc(), LISTVIEW_WindowProc(), MONTHCAL_WindowProc(), PROPSHEET_DialogProc(), REBAR_WindowProc(), STATIC_WindowProc(), StatusWindowProc(), SysLinkWindowProc(), TAB_WindowProc(), TOOLBAR_SysColorChange(), TOOLTIPS_WindowProc(), and TREEVIEW_WindowProc().

◆ DATETIME_Register()

void DATETIME_Register ( void  )

Definition at line 1719 of file datetime.c.

1720{
1721 WNDCLASSW wndClass;
1722
1723 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
1724 wndClass.style = CS_GLOBALCLASS;
1726 wndClass.cbClsExtra = 0;
1727 wndClass.cbWndExtra = sizeof(DATETIME_INFO *);
1728 wndClass.hCursor = LoadCursorW (0, (LPCWSTR)IDC_ARROW);
1729 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
1731
1732 RegisterClassW (&wndClass);
1733}
static LRESULT WINAPI DATETIME_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: datetime.c:1589
#define DATETIMEPICK_CLASSW
Definition: commctrl.h:4327

Referenced by DllMain().

◆ DATETIME_Unregister()

void DATETIME_Unregister ( void  )

Definition at line 1737 of file datetime.c.

Referenced by DllMain().

◆ EDIT_Register()

void EDIT_Register ( void  )

Definition at line 5279 of file edit.c.

5281{
5282 WNDCLASSW wndClass;
5283
5284 memset(&wndClass, 0, sizeof(wndClass));
5286 wndClass.lpfnWndProc = EDIT_WindowProc;
5287 wndClass.cbClsExtra = 0;
5288#ifdef __i386__
5289 wndClass.cbWndExtra = sizeof(EDITSTATE *) + sizeof(WORD);
5290#else
5291 wndClass.cbWndExtra = sizeof(EDITSTATE *);
5292#endif
5293 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_IBEAM);
5294 wndClass.hbrBackground = NULL;
5295 wndClass.lpszClassName = WC_EDITW;
5296 RegisterClassW(&wndClass);
static LRESULT CALLBACK EDIT_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: edit.c:4717
unsigned short WORD
Definition: ntddk_ex.h:93
#define WC_EDITW
Definition: commctrl.h:4692
Definition: edit.c:96
#define IDC_IBEAM
Definition: winuser.h:688

Referenced by DllMain().

◆ FLATSB_Register()

void FLATSB_Register ( void  )

Definition at line 267 of file flatsb.c.

268{
269 WNDCLASSW wndClass;
270
271 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
272 wndClass.style = CS_GLOBALCLASS;
274 wndClass.cbClsExtra = 0;
275 wndClass.cbWndExtra = sizeof(FLATSB_INFO *);
276 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
277 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
278 wndClass.lpszClassName = FLATSB_CLASSW;
279
280 RegisterClassW (&wndClass);
281}
static LRESULT WINAPI FlatSB_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:244
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:51

Referenced by DllMain().

◆ FLATSB_Unregister()

void FLATSB_Unregister ( void  )

Definition at line 285 of file flatsb.c.

286{
288}

Referenced by DllMain().

◆ Free()

BOOL WINAPI Free ( LPVOID  lpMem)

Definition at line 113 of file comctl32undoc.c.

114{
115 return !LocalFree( lpMem );
116}
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1594

◆ GetSize()

DWORD WINAPI GetSize ( LPVOID  lpMem)

Definition at line 132 of file comctl32undoc.c.

133{
134 return LocalSize( lpMem );
135}
SIZE_T NTAPI LocalSize(HLOCAL hMem)
Definition: heapmem.c:1794

Referenced by DECLARE_INTERFACE_(), and InitFunctionPtrs().

◆ HEADER_Register()

void HEADER_Register ( void  )

Definition at line 2287 of file header.c.

2288{
2289 WNDCLASSW wndClass;
2290
2291 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2292 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
2293 wndClass.lpfnWndProc = HEADER_WindowProc;
2294 wndClass.cbClsExtra = 0;
2295 wndClass.cbWndExtra = sizeof(HEADER_INFO *);
2296 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2297 wndClass.lpszClassName = WC_HEADERW;
2298
2299 RegisterClassW (&wndClass);
2300}
static LRESULT WINAPI HEADER_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: header.c:2137
#define WC_HEADERW
Definition: commctrl.h:624

Referenced by DllMain().

◆ HEADER_Unregister()

void HEADER_Unregister ( void  )

Definition at line 2304 of file header.c.

2305{
2307}

Referenced by DllMain().

◆ HOTKEY_Register()

void HOTKEY_Register ( void  )

Definition at line 541 of file hotkey.c.

542{
543 WNDCLASSW wndClass;
544
545 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
546 wndClass.style = CS_GLOBALCLASS;
548 wndClass.cbClsExtra = 0;
549 wndClass.cbWndExtra = sizeof(HOTKEY_INFO *);
550 wndClass.hCursor = 0;
551 wndClass.hbrBackground = 0;
552 wndClass.lpszClassName = HOTKEY_CLASSW;
553
554 RegisterClassW (&wndClass);
555}
static LRESULT WINAPI HOTKEY_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: hotkey.c:466
#define HOTKEY_CLASSW
Definition: commctrl.h:2241

Referenced by DllMain().

◆ HOTKEY_Unregister()

void HOTKEY_Unregister ( void  )

Definition at line 559 of file hotkey.c.

560{
562}

Referenced by DllMain().

◆ IPADDRESS_Register()

void IPADDRESS_Register ( void  )

Definition at line 662 of file ipaddress.c.

663{
664 WNDCLASSW wndClass;
665
666 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
669 wndClass.cbClsExtra = 0;
670 wndClass.cbWndExtra = sizeof(IPADDRESS_INFO *);
671 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_IBEAM);
672 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
673 wndClass.lpszClassName = WC_IPADDRESSW;
674
675 RegisterClassW (&wndClass);
676}
static LRESULT WINAPI IPADDRESS_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: ipaddress.c:589
#define WC_IPADDRESSW
Definition: commctrl.h:4477

Referenced by DllMain().

◆ IPADDRESS_Unregister()

void IPADDRESS_Unregister ( void  )

Definition at line 679 of file ipaddress.c.

680{
682}

Referenced by DllMain().

◆ LISTBOX_Register()

void LISTBOX_Register ( void  )

Definition at line 3160 of file listbox.c.

3161{
3162 WNDCLASSW wndClass;
3163
3164 memset(&wndClass, 0, sizeof(wndClass));
3167 wndClass.cbClsExtra = 0;
3168 wndClass.cbWndExtra = sizeof(LB_DESCR *);
3169 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
3170 wndClass.hbrBackground = NULL;
3171 wndClass.lpszClassName = WC_LISTBOXW;
3172 RegisterClassW(&wndClass);
3173}
#define WC_LISTBOXW
Definition: commctrl.h:4716

Referenced by DllMain().

◆ LISTVIEW_Register()

void LISTVIEW_Register ( void  )

Definition at line 12021 of file listview.c.

12022{
12023 WNDCLASSW wndClass;
12024
12025 ZeroMemory(&wndClass, sizeof(WNDCLASSW));
12026 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
12028 wndClass.cbClsExtra = 0;
12029 wndClass.cbWndExtra = sizeof(LISTVIEW_INFO *);
12030 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
12031 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
12032 wndClass.lpszClassName = WC_LISTVIEWW;
12033 RegisterClassW(&wndClass);
12034}
static LRESULT WINAPI LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: listview.c:11502
#define WC_LISTVIEWW
Definition: commctrl.h:2262

Referenced by DllMain().

◆ LISTVIEW_Unregister()

void LISTVIEW_Unregister ( void  )

Definition at line 12046 of file listview.c.

12047{
12049}

Referenced by DllMain().

◆ MirrorIcon()

BOOL WINAPI MirrorIcon ( HICON phicon1,
HICON phicon2 
)

Definition at line 1796 of file commctrl.c.

1797{
1798 FIXME("(%p, %p): stub\n", phicon1, phicon2);
1799 return FALSE;
1800}
#define FIXME(fmt,...)
Definition: precomp.h:53

◆ MONTHCAL_CalculateDayOfWeek()

int MONTHCAL_CalculateDayOfWeek ( SYSTEMTIME date,
BOOL  inplace 
)

Definition at line 467 of file monthcal.c.

467 : (0 == sunday,..., 6 == saturday)
468 */
470{
471 SYSTEMTIME st = st_null;
472 FILETIME ft;
473
475
476 SystemTimeToFileTime(&st, &ft);
477 FileTimeToSystemTime(&ft, &st);
478
479 if (inplace) date->wDayOfWeek = st.wDayOfWeek;
480
static void MONTHCAL_CopyDate(const SYSTEMTIME *from, SYSTEMTIME *to)
Definition: monthcal.c:279
int MONTHCAL_CalculateDayOfWeek(SYSTEMTIME *date, BOOL inplace)
Definition: monthcal.c:467
static const SYSTEMTIME st_null
Definition: monthcal.c:149
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
Definition: time.c:188
BOOL WINAPI SystemTimeToFileTime(IN CONST SYSTEMTIME *lpSystemTime, OUT LPFILETIME lpFileTime)
Definition: time.c:158
unsigned int BOOL
Definition: ntddk_ex.h:94
__u16 date
Definition: mkdosfs.c:8
WORD wDayOfWeek
Definition: winbase.h:932

◆ MONTHCAL_CompareSystemTime()

LONG MONTHCAL_CompareSystemTime ( const SYSTEMTIME first,
const SYSTEMTIME second 
)

Definition at line 302 of file monthcal.c.

305{
306 FILETIME ft_first, ft_second;
307
308 SystemTimeToFileTime(first, &ft_first);
309 SystemTimeToFileTime(second, &ft_second);
310
const GLint * first
Definition: glext.h:5794

Referenced by DATETIME_IncreaseField(), DATETIME_IsDateInValidRange(), MONTHCAL_IsDateInValidRange(), and MONTHCAL_SetSelRange().

◆ MONTHCAL_MonthLength()

int MONTHCAL_MonthLength ( int  month,
int  year 
)

Definition at line 214 of file monthcal.c.

217{
218 static const int mdays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
219 /* Wrap around, this eases handling. Getting length only we shouldn't care
220 about year change here cause January and December have
221 the same day quantity */
222 if(month == 0)
223 month = 12;
224 else if(month == 13)
225 month = 1;
226
227 /* special case for calendar transition year */
228 if(month == min_allowed_date.wMonth && year == min_allowed_date.wYear) return 19;
229
230 /* if we have a leap year add 1 day to February */
231 /* a leap year is a year either divisible by 400 */
232 /* or divisible by 4 and not by 100 */
233 if(month == 2) { /* February */
234 return mdays[month - 1] + ((year%400 == 0) ? 1 : ((year%100 != 0) &&
235 (year%4 == 0)) ? 1 : 0);
236 }
237 else {
238 return mdays[month - 1];
static const SYSTEMTIME min_allowed_date
Definition: monthcal.c:152
static const WCHAR month[12][4]
Definition: session.c:2150
WORD wYear
Definition: winbase.h:930
WORD wMonth
Definition: winbase.h:931

◆ MONTHCAL_Register()

void MONTHCAL_Register ( void  )

Definition at line 3034 of file monthcal.c.

3037{
3038 WNDCLASSW wndClass;
3039
3040 ZeroMemory(&wndClass, sizeof(WNDCLASSW));
3041 wndClass.style = CS_GLOBALCLASS;
3043 wndClass.cbClsExtra = 0;
3044 wndClass.cbWndExtra = sizeof(MONTHCAL_INFO *);
3045 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
3046 wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
3047 wndClass.lpszClassName = MONTHCAL_CLASSW;
3048
static LRESULT WINAPI MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: monthcal.c:2882
#define MONTHCAL_CLASSW
Definition: commctrl.h:4180

Referenced by DllMain().

◆ MONTHCAL_Unregister()

void MONTHCAL_Unregister ( void  )

Definition at line 3052 of file monthcal.c.

3055{

Referenced by DllMain().

◆ NATIVEFONT_Register()

void NATIVEFONT_Register ( void  )

Definition at line 113 of file nativefont.c.

114{
115 WNDCLASSW wndClass;
116
117 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
118 wndClass.style = CS_GLOBALCLASS;
120 wndClass.cbClsExtra = 0;
121 wndClass.cbWndExtra = sizeof(NATIVEFONT_INFO *);
122 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
123 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
125
126 RegisterClassW (&wndClass);
127}
static LRESULT WINAPI NATIVEFONT_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: nativefont.c:75
#define WC_NATIVEFONTCTLW
Definition: commctrl.h:4611

Referenced by DllMain().

◆ NATIVEFONT_Unregister()

void NATIVEFONT_Unregister ( void  )

Definition at line 131 of file nativefont.c.

Referenced by DllMain().

◆ PAGER_Register()

void PAGER_Register ( void  )

Definition at line 1563 of file pager.c.

1564{
1565 WNDCLASSW wndClass;
1566
1567 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
1568 wndClass.style = CS_GLOBALCLASS;
1569 wndClass.lpfnWndProc = PAGER_WindowProc;
1570 wndClass.cbClsExtra = 0;
1571 wndClass.cbWndExtra = sizeof(PAGER_INFO *);
1572 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
1573 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
1575
1576 RegisterClassW (&wndClass);
1577}
static LRESULT WINAPI PAGER_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: pager.c:1457
#define WC_PAGESCROLLERW
Definition: commctrl.h:4502

Referenced by DllMain().

◆ PAGER_Unregister()

void PAGER_Unregister ( void  )

Definition at line 1581 of file pager.c.

1582{
1584}

Referenced by DllMain().

◆ PROGRESS_Register()

void PROGRESS_Register ( void  )

Definition at line 748 of file progress.c.

749{
750 WNDCLASSW wndClass;
751
752 ZeroMemory (&wndClass, sizeof(wndClass));
755 wndClass.cbClsExtra = 0;
756 wndClass.cbWndExtra = sizeof (PROGRESS_INFO *);
757 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
759
760 RegisterClassW (&wndClass);
761}
static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: progress.c:528
#define PROGRESS_CLASSW
Definition: commctrl.h:2181

Referenced by DllMain().

◆ PROGRESS_Unregister()

void PROGRESS_Unregister ( void  )

Definition at line 769 of file progress.c.

Referenced by DllMain().

◆ ReAlloc()

LPVOID WINAPI ReAlloc ( LPVOID  lpSrc,
DWORD  dwSize 
)

Definition at line 92 of file comctl32undoc.c.

93{
94 if (lpSrc)
96 else
98}
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:1625
#define LMEM_MOVEABLE
Definition: winbase.h:395

Referenced by Str_SetPtrAtoW(), and Str_SetPtrWtoA().

◆ REBAR_Register()

void REBAR_Register ( void  )

Definition at line 3837 of file rebar.c.

3838{
3839 WNDCLASSW wndClass;
3840
3841 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
3842 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
3843 wndClass.lpfnWndProc = REBAR_WindowProc;
3844 wndClass.cbClsExtra = 0;
3845 wndClass.cbWndExtra = sizeof(REBAR_INFO *);
3846 wndClass.hCursor = 0;
3847 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
3848#if GLATESTING
3849 wndClass.hbrBackground = CreateSolidBrush(RGB(0,128,0));
3850#endif
3851 wndClass.lpszClassName = REBARCLASSNAMEW;
3852
3853 RegisterClassW (&wndClass);
3854
3857
3858}
static LRESULT WINAPI REBAR_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: rebar.c:3609
static UINT mindragy
Definition: rebar.c:270
static UINT mindragx
Definition: rebar.c:269
#define RGB(r, g, b)
Definition: precomp.h:71
#define REBARCLASSNAMEW
Definition: commctrl.h:1463
#define SM_CXDRAG
Definition: winuser.h:1031
#define SM_CYDRAG
Definition: winuser.h:1032
int WINAPI GetSystemMetrics(_In_ int)

Referenced by DllMain().

◆ REBAR_Unregister()

void REBAR_Unregister ( void  )

Definition at line 3862 of file rebar.c.

3863{
3865}

Referenced by DllMain().

◆ set_control_clipping()

HRGN set_control_clipping ( HDC  hdc,
const RECT rect 
)

Definition at line 242 of file button.c.

243{
244 RECT rc = *rect;
245 HRGN hrgn = CreateRectRgn( 0, 0, 0, 0 );
246
247 if (GetClipRgn( hdc, hrgn ) != 1)
248 {
250 hrgn = 0;
251 }
252 DPtoLP( hdc, (POINT *)&rc, 2 );
253 if (GetLayout( hdc ) & LAYOUT_RTL) /* compensate for the shifting done by IntersectClipRect */
254 {
255 rc.left++;
256 rc.right++;
257 }
258 IntersectClipRect( hdc, rc.left, rc.top, rc.right, rc.bottom );
259 return hrgn;
260}
static HRGN hrgn
DWORD WINAPI GetLayout(_In_ HDC hdc)
Definition: coord.c:750
& rect
Definition: startmenu.cpp:1413
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI IntersectClipRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI DPtoLP(_In_ HDC hdc, _Inout_updates_(c) LPPOINT lppt, _In_ int c)
int WINAPI GetClipRgn(_In_ HDC, _In_ HRGN)
#define LAYOUT_RTL
Definition: wingdi.h:1371

◆ SetPathWordBreakProc()

LRESULT WINAPI SetPathWordBreakProc ( HWND  hwnd,
BOOL  bSet 
)

Definition at line 1841 of file commctrl.c.

1842{
1844 (LPARAM)(bSet ? PathWordBreakProc : NULL));
1845}
static int CALLBACK PathWordBreakProc(LPCWSTR lpch, int ichCurrent, int cch, int code)
Definition: commctrl.c:1815
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define EM_SETWORDBREAKPROC
Definition: winuser.h:2023

Referenced by COMBOEX_SetExtendedStyle().

◆ STATIC_Register()

void STATIC_Register ( void  )

Definition at line 803 of file static.c.

804{
805 WNDCLASSW wndClass;
806
807 memset(&wndClass, 0, sizeof(wndClass));
810 wndClass.cbClsExtra = 0;
812 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
813 wndClass.hbrBackground = NULL;
814 wndClass.lpszClassName = WC_STATICW;
815 RegisterClassW(&wndClass);
816}
static LRESULT CALLBACK STATIC_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: static.c:322
#define STATIC_EXTRA_BYTES
Definition: static.c:56
#define WC_STATICW
Definition: commctrl.h:4685

Referenced by DllMain().

◆ STATUS_Register()

void STATUS_Register ( void  )

Definition at line 1336 of file status.c.

1337{
1338 WNDCLASSW wndClass;
1339
1340 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
1342 wndClass.lpfnWndProc = StatusWindowProc;
1343 wndClass.cbClsExtra = 0;
1344 wndClass.cbWndExtra = sizeof(STATUS_INFO *);
1345 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
1346 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
1348
1349 RegisterClassW (&wndClass);
1350}
static LRESULT WINAPI StatusWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: status.c:1177
#define STATUSCLASSNAMEW
Definition: commctrl.h:1941

Referenced by DllMain().

◆ STATUS_Unregister()

void STATUS_Unregister ( void  )

Definition at line 1360 of file status.c.

1361{
1363}

Referenced by DllMain().

◆ Str_GetPtrA()

INT WINAPI Str_GetPtrA ( LPCSTR  lpSrc,
LPSTR  lpDest,
INT  nMaxLen 
)

Definition at line 132 of file string.c.

133{
134 INT len;
135
136 TRACE("(%p %p %d)\n", lpSrc, lpDest, nMaxLen);
137
138 if ((!lpDest || nMaxLen == 0) && lpSrc)
139 return (strlen(lpSrc) + 1);
140
141 if (nMaxLen == 0)
142 return 0;
143
144 if (lpSrc == NULL) {
145 lpDest[0] = '\0';
146 return 0;
147 }
148
149 len = strlen(lpSrc) + 1;
150 if (len >= nMaxLen)
151 len = nMaxLen;
152
153 RtlMoveMemory (lpDest, lpSrc, len - 1);
154 lpDest[len - 1] = '\0';
155
156 return len;
157}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLenum GLsizei len
Definition: glext.h:6722
#define TRACE(s)
Definition: solgame.cpp:4
int32_t INT
Definition: typedefs.h:58
#define RtlMoveMemory(Destination, Source, Length)
Definition: typedefs.h:264

Referenced by InitFunctionPtrs().

◆ Str_GetPtrAtoW()

INT Str_GetPtrAtoW ( LPCSTR  lpSrc,
LPWSTR  lpDest,
INT  nMaxLen 
)

Definition at line 947 of file comctl32undoc.c.

948{
949 INT len;
950
951 TRACE("(%s %p %d)\n", debugstr_a(lpSrc), lpDest, nMaxLen);
952
953 if (!lpDest && lpSrc)
954 return MultiByteToWideChar(CP_ACP, 0, lpSrc, -1, 0, 0);
955
956 if (nMaxLen == 0)
957 return 0;
958
959 if (lpSrc == NULL) {
960 lpDest[0] = '\0';
961 return 0;
962 }
963
964 len = MultiByteToWideChar(CP_ACP, 0, lpSrc, -1, 0, 0);
965 if (len >= nMaxLen)
966 len = nMaxLen - 1;
967
968 MultiByteToWideChar(CP_ACP, 0, lpSrc, -1, lpDest, len);
969 lpDest[len] = '\0';
970
971 return len;
972}
#define CP_ACP
Definition: compat.h:109
#define MultiByteToWideChar
Definition: compat.h:110
#define debugstr_a
Definition: kernel32.h:31

Referenced by TOOLTIPS_GetDispInfoA().

◆ Str_GetPtrW()

INT WINAPI Str_GetPtrW ( LPCWSTR  lpSrc,
LPWSTR  lpDest,
INT  nMaxLen 
)

Definition at line 200 of file string.c.

201{
202 INT len;
203
204 TRACE("(%p %p %d)\n", lpSrc, lpDest, nMaxLen);
205
206 if (!lpDest && lpSrc)
207 return lstrlenW (lpSrc);
208
209 if (nMaxLen == 0)
210 return 0;
211
212 if (lpSrc == NULL) {
213 lpDest[0] = '\0';
214 return 0;
215 }
216
217 len = lstrlenW (lpSrc);
218 if (len >= nMaxLen)
219 len = nMaxLen - 1;
220
221 RtlMoveMemory (lpDest, lpSrc, len*sizeof(WCHAR));
222 lpDest[len] = '\0';
223
224 return len;
225}
#define lstrlenW
Definition: compat.h:750

Referenced by HEADER_GetItemT(), HEADER_PrepareCallbackItems(), InitFunctionPtrs(), REBAR_GetBandInfoT(), TAB_GetItemT(), TOOLBAR_GetButtonInfoT(), and TOOLTIPS_GetDispInfoW().

◆ Str_GetPtrWtoA()

INT Str_GetPtrWtoA ( LPCWSTR  lpSrc,
LPSTR  lpDest,
INT  nMaxLen 
)

Definition at line 906 of file comctl32undoc.c.

907{
908 INT len;
909
910 TRACE("(%s %p %d)\n", debugstr_w(lpSrc), lpDest, nMaxLen);
911
912 if (!lpDest && lpSrc)
913 return WideCharToMultiByte(CP_ACP, 0, lpSrc, -1, 0, 0, NULL, NULL);
914
915 if (nMaxLen == 0)
916 return 0;
917
918 if (lpSrc == NULL) {
919 lpDest[0] = '\0';
920 return 0;
921 }
922
923 len = WideCharToMultiByte(CP_ACP, 0, lpSrc, -1, 0, 0, NULL, NULL);
924 if (len >= nMaxLen)
925 len = nMaxLen - 1;
926
927 WideCharToMultiByte(CP_ACP, 0, lpSrc, -1, lpDest, len, NULL, NULL);
928 lpDest[len] = '\0';
929
930 return len;
931}
#define WideCharToMultiByte
Definition: compat.h:111
#define debugstr_w
Definition: kernel32.h:32

Referenced by HEADER_GetItemT(), REBAR_GetBandInfoT(), TAB_GetItemT(), and TOOLBAR_GetButtonInfoT().

◆ Str_SetPtrAtoW()

BOOL Str_SetPtrAtoW ( LPWSTR lppDest,
LPCSTR  lpSrc 
)

Definition at line 992 of file comctl32undoc.c.

993{
994 TRACE("(%p %s)\n", lppDest, lpSrc);
995
996 if (lpSrc) {
997 INT len = MultiByteToWideChar(CP_ACP,0,lpSrc,-1,NULL,0);
998 LPWSTR ptr = ReAlloc (*lppDest, len*sizeof(WCHAR));
999
1000 if (!ptr)
1001 return FALSE;
1002 MultiByteToWideChar(CP_ACP,0,lpSrc,-1,ptr,len);
1003 *lppDest = ptr;
1004 }
1005 else {
1006 Free (*lppDest);
1007 *lppDest = NULL;
1008 }
1009
1010 return TRUE;
1011}
LPVOID WINAPI ReAlloc(LPVOID lpSrc, DWORD dwSize)
Definition: comctl32undoc.c:92
static PVOID ptr
Definition: dispmode.c:27
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION Free
Definition: exfuncs.h:815

Referenced by HEADER_CopyHDItemForNotify(), HEADER_PrepareCallbackItems(), HEADER_StoreHDItemInHeader(), REBAR_InsertBandT(), REBAR_SetBandInfoT(), set_string_index(), TAB_InsertItemT(), TAB_SetItemT(), and TOOLBAR_AddStringA().

◆ Str_SetPtrWtoA()

BOOL Str_SetPtrWtoA ( LPSTR lppDest,
LPCWSTR  lpSrc 
)

Definition at line 1030 of file comctl32undoc.c.

1031{
1032 TRACE("(%p %s)\n", lppDest, debugstr_w(lpSrc));
1033
1034 if (lpSrc) {
1036 LPSTR ptr = ReAlloc (*lppDest, len*sizeof(CHAR));
1037
1038 if (!ptr)
1039 return FALSE;
1041 *lppDest = ptr;
1042 }
1043 else {
1044 Free (*lppDest);
1045 *lppDest = NULL;
1046 }
1047
1048 return TRUE;
1049}
char * LPSTR
Definition: xmlstorage.h:182
char CHAR
Definition: xmlstorage.h:175

Referenced by HEADER_CopyHDItemForNotify(), notify_forward_header(), and PAGER_ConvertText().

◆ SYSLINK_Register()

void SYSLINK_Register ( void  )

Definition at line 1747 of file syslink.c.

1748{
1749 WNDCLASSW wndClass;
1750
1751 ZeroMemory (&wndClass, sizeof(wndClass));
1753 wndClass.lpfnWndProc = SysLinkWindowProc;
1754 wndClass.cbClsExtra = 0;
1755 wndClass.cbWndExtra = sizeof (SYSLINK_INFO *);
1756 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
1757 wndClass.lpszClassName = WC_LINK;
1758
1759 RegisterClassW (&wndClass);
1760}
#define WC_LINK
Definition: commctrl.h:4742

Referenced by DllMain().

◆ SYSLINK_Unregister()

void SYSLINK_Unregister ( void  )

Definition at line 1768 of file syslink.c.

1769{
1771}

Referenced by DllMain().

◆ TAB_Register()

void TAB_Register ( void  )

Definition at line 3480 of file tab.c.

3481{
3482 WNDCLASSW wndClass;
3483
3484 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
3486 wndClass.lpfnWndProc = TAB_WindowProc;
3487 wndClass.cbClsExtra = 0;
3488 wndClass.cbWndExtra = sizeof(TAB_INFO *);
3489 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
3490 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
3491 wndClass.lpszClassName = WC_TABCONTROLW;
3492
3493 RegisterClassW (&wndClass);
3494}
static LRESULT WINAPI TAB_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: tab.c:3300
#define WC_TABCONTROLW
Definition: commctrl.h:3940
Definition: tab.c:93

Referenced by DllMain().

◆ TAB_Unregister()

void TAB_Unregister ( void  )

Definition at line 3498 of file tab.c.

3499{
3501}

Referenced by DllMain().

◆ THEMING_CallOriginalClass()

LRESULT THEMING_CallOriginalClass ( HWND  wnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 208 of file theming.c.

209{
211 WNDPROC oldProc = originalProcs[subclass];
212 return CallWindowProcW (oldProc, wnd, msg, wParam, lParam);
213}
#define msg(x)
Definition: auth_time.c:54
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static ATOM atSubclassProp
Definition: theming.c:64
static WNDPROC originalProcs[NUM_SUBCLASSES]
Definition: theming.c:62
int32_t INT_PTR
Definition: typedefs.h:64
#define MAKEINTATOM(i)
Definition: winbase.h:1488
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2909
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by THEMING_ScrollbarSubclassProc().

◆ THEMING_Initialize()

void THEMING_Initialize ( void  )

Definition at line 108 of file theming.c.

110{
111 unsigned int i;
112 static const WCHAR subclassPropName[] =
113 { 'C','C','3','2','T','h','e','m','i','n','g','S','u','b','C','l',0 };
114 static const WCHAR refDataPropName[] =
115 { 'C','C','3','2','T','h','e','m','i','n','g','D','a','t','a',0 };
116#ifdef __REACTOS__ /* r73803 */
117 ULONG_PTR ulCookie;
118 BOOL ret, bActivated;
119#else
120 if (!IsThemeActive()) return;
121#endif
122
123 atSubclassProp = GlobalAddAtomW (subclassPropName);
124 atRefDataProp = GlobalAddAtomW (refDataPropName);
125
126 for (i = 0; i < NUM_SUBCLASSES; i++)
127 {
128 WNDCLASSEXW class;
129
130 class.cbSize = sizeof(class);
131
132#ifdef __REACTOS__ /* r73803 */
133 bActivated = ActivateActCtx(hActCtx5, &ulCookie);
134 ret = GetClassInfoExW (NULL, subclasses[i].className, &class);
135 if (bActivated)
136 DeactivateActCtx(0, ulCookie);
137
138 if (!ret)
139#else
140 if (!GetClassInfoExW (NULL, subclasses[i].className, &class))
141#endif
142 {
143 ERR("Could not retrieve information for class %s\n",
144 debugstr_w (subclasses[i].className));
145 continue;
146 }
147 originalProcs[i] = class.lpfnWndProc;
148 class.lpfnWndProc = subclassProcs[i];
149#ifdef __REACTOS__ /* r73803 */
150 class.style |= CS_GLOBALCLASS;
151 class.hInstance = COMCTL32_hModule;
152#endif
153
154 if (!class.lpfnWndProc)
155 {
156 ERR("Missing proc for class %s\n",
157 debugstr_w (subclasses[i].className));
158 continue;
159 }
160
161#ifdef __REACTOS__ /* r73803 */
162 bActivated = ActivateActCtx(hActCtx6, &ulCookie);
163#endif
164 if (!RegisterClassExW (&class))
165 {
166#ifdef __REACTOS__ /* r73803 */
167 WARN("Could not re-register class %s: %x\n",
168#else
169 ERR("Could not re-register class %s: %x\n",
170#endif
171 debugstr_w (subclasses[i].className), GetLastError ());
172 }
173 else
174 {
175 TRACE("Re-registered class %s\n",
176 debugstr_w (subclasses[i].className));
177 }
178
179#ifdef __REACTOS__ /* r73803 */
180 if (bActivated)
181 DeactivateActCtx(0, ulCookie);
182#endif
183 }
184}
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
HMODULE COMCTL32_hModule
Definition: commctrl.c:79
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
Definition: actctx.c:268
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
Definition: actctx.c:237
ATOM WINAPI GlobalAddAtomW(LPCWSTR lpString)
Definition: atom.c:444
BOOL WINAPI IsThemeActive(void)
Definition: system.c:606
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
UINT cbSize
Definition: winuser.h:3219
static const struct ThemingSubclass subclasses[]
static ATOM atRefDataProp
Definition: theming.c:63
static const WNDPROC subclassProcs[NUM_SUBCLASSES]
Definition: theming.c:92
#define NUM_SUBCLASSES
Definition: theming.c:60
uint32_t ULONG_PTR
Definition: typedefs.h:65
int ret
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)

Referenced by DllMain().

◆ THEMING_Uninitialize()

void THEMING_Uninitialize ( void  )

Definition at line 191 of file theming.c.

192{
193 unsigned int i;
194
195 if (!atSubclassProp) return; /* not initialized */
196
197 for (i = 0; i < NUM_SUBCLASSES; i++)
198 {
199 UnregisterClassW (subclasses[i].className, NULL);
200 }
201}

Referenced by DllMain().

◆ TOOLBAR_Register()

void TOOLBAR_Register ( void  )

Definition at line 7281 of file toolbar.c.

7282{
7283 WNDCLASSW wndClass;
7284
7285 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
7286 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
7287 wndClass.lpfnWndProc = ToolbarWindowProc;
7288 wndClass.cbClsExtra = 0;
7289 wndClass.cbWndExtra = sizeof(TOOLBAR_INFO *);
7290 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
7291 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
7293
7294 RegisterClassW (&wndClass);
7295}
static LRESULT WINAPI ToolbarWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: toolbar.c:6856
#define TOOLBARCLASSNAMEW
Definition: commctrl.h:943

Referenced by DllMain().

◆ TOOLBAR_Unregister()

void TOOLBAR_Unregister ( void  )

Definition at line 7299 of file toolbar.c.

7300{
7302}

Referenced by DllMain().

◆ TOOLTIPS_Register()

void TOOLTIPS_Register ( void  )

Definition at line 2375 of file tooltips.c.

2376{
2377 WNDCLASSW wndClass;
2378
2379 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2382 wndClass.cbClsExtra = 0;
2383 wndClass.cbWndExtra = sizeof(TOOLTIPS_INFO *);
2384 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2385 wndClass.hbrBackground = 0;
2386 wndClass.lpszClassName = TOOLTIPS_CLASSW;
2387
2388 RegisterClassW (&wndClass);
2389
2397}
#define IDI_TT_WARN_SM
Definition: comctl32.h:110
#define IDI_TT_ERROR_SM
Definition: comctl32.h:111
#define IDI_TT_INFO_SM
Definition: comctl32.h:109
static LRESULT CALLBACK TOOLTIPS_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: tooltips.c:2195
static HICON hTooltipIcons[TTI_ERROR+1]
Definition: tooltips.c:109
#define TTI_NONE
Definition: commctrl.h:1779
#define TTI_INFO
Definition: commctrl.h:1780
#define TTI_ERROR
Definition: commctrl.h:1782
#define TTI_WARNING
Definition: commctrl.h:1781
#define IMAGE_ICON
Definition: winuser.h:212
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
Definition: cursoricon.c:2255
#define MAKEINTRESOURCE
Definition: winuser.h:591

Referenced by DllMain().

◆ TOOLTIPS_Unregister()

void TOOLTIPS_Unregister ( void  )

Definition at line 2401 of file tooltips.c.

2402{
2403 int i;
2404 for (i = TTI_INFO; i <= TTI_ERROR; i++)
2407}
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2105

Referenced by DllMain().

◆ TRACKBAR_Register()

void TRACKBAR_Register ( void  )

Definition at line 2068 of file trackbar.c.

2069{
2070 WNDCLASSW wndClass;
2071
2072 ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2073 wndClass.style = CS_GLOBALCLASS;
2075 wndClass.cbClsExtra = 0;
2076 wndClass.cbWndExtra = sizeof(TRACKBAR_INFO *);
2077 wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2078 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
2079 wndClass.lpszClassName = TRACKBAR_CLASSW;
2080
2081 RegisterClassW (&wndClass);
2082}
static LRESULT WINAPI TRACKBAR_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: trackbar.c:1879
#define TRACKBAR_CLASSW
Definition: commctrl.h:2016

Referenced by DllMain().

◆ TRACKBAR_Unregister()

void TRACKBAR_Unregister ( void  )

Definition at line 2085 of file trackbar.c.

2086{
2088}

Referenced by DllMain().

◆ TREEVIEW_Register()

void TREEVIEW_Register ( void  )

Definition at line 5940 of file treeview.c.

5941{
5942 WNDCLASSW wndClass;
5943
5944 TRACE("\n");
5945
5946 ZeroMemory(&wndClass, sizeof(WNDCLASSW));
5947 wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
5949 wndClass.cbClsExtra = 0;
5950 wndClass.cbWndExtra = sizeof(TREEVIEW_INFO *);
5951
5952 wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
5953 wndClass.hbrBackground = 0;
5954 wndClass.lpszClassName = WC_TREEVIEWW;
5955
5956 RegisterClassW(&wndClass);
5957}
static LRESULT WINAPI TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: treeview.c:5669
#define WC_TREEVIEWW
Definition: commctrl.h:3248

Referenced by DllMain().

◆ TREEVIEW_Unregister()

void TREEVIEW_Unregister ( void  )

Definition at line 5961 of file treeview.c.

5962{
5964}

Referenced by DllMain().

◆ UPDOWN_Register()

void UPDOWN_Register ( void  )

Definition at line 1177 of file updown.c.

1178{
1179 WNDCLASSW wndClass;
1180
1181 ZeroMemory( &wndClass, sizeof( WNDCLASSW ) );
1183 wndClass.lpfnWndProc = UpDownWindowProc;
1184 wndClass.cbClsExtra = 0;
1185 wndClass.cbWndExtra = sizeof(UPDOWN_INFO*);
1186 wndClass.hCursor = LoadCursorW( 0, (LPWSTR)IDC_ARROW );
1187 wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
1188 wndClass.lpszClassName = UPDOWN_CLASSW;
1189
1190 RegisterClassW( &wndClass );
1191}
static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: updown.c:892
#define UPDOWN_CLASSW
Definition: commctrl.h:2124

Referenced by DllMain().

◆ UPDOWN_Unregister()

void UPDOWN_Unregister ( void  )

Definition at line 1199 of file updown.c.

1200{
1202}

Referenced by DllMain().

Variable Documentation

◆ DECLSPEC_HIDDEN

COMCTL32_SysColor comctl32_color DECLSPEC_HIDDEN
extern

Definition at line 47 of file comctl32.h.