ReactOS  0.4.14-dev-57-g333b8f1
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 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 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 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
 
void THEMING_SetSubclassData (HWND, ULONG_PTR) DECLSPEC_HIDDEN
 

Variables

HMODULE COMCTL32_hModule DECLSPEC_HIDDEN
 

Macro Definition Documentation

◆ COMCTL32_VERSION_MINOR

#define COMCTL32_VERSION_MINOR   81

Definition at line 190 of file comctl32.h.

◆ HKY_NONE

#define HKY_NONE   2048

Definition at line 95 of file comctl32.h.

◆ IDB_HIST_LARGE

#define IDB_HIST_LARGE   131

Definition at line 74 of file comctl32.h.

◆ IDB_HIST_SMALL

#define IDB_HIST_SMALL   130

Definition at line 73 of file comctl32.h.

◆ IDB_STD_LARGE

#define IDB_STD_LARGE   121

Definition at line 70 of file comctl32.h.

◆ IDB_STD_SMALL

#define IDB_STD_SMALL   120

Definition at line 69 of file comctl32.h.

◆ IDB_VIEW_LARGE

#define IDB_VIEW_LARGE   125

Definition at line 72 of file comctl32.h.

◆ IDB_VIEW_SMALL

#define IDB_VIEW_SMALL   124

Definition at line 71 of file comctl32.h.

◆ IDC_APPLY_BUTTON

#define IDC_APPLY_BUTTON   12321

Definition at line 46 of file comctl32.h.

◆ IDC_AVAILBTN_LBOX

#define IDC_AVAILBTN_LBOX   201

Definition at line 58 of file comctl32.h.

◆ IDC_BACK_BUTTON

#define IDC_BACK_BUTTON   12323

Definition at line 47 of file comctl32.h.

◆ IDC_COPY

#define IDC_COPY   104

Definition at line 86 of file comctl32.h.

◆ IDC_DIVIDER

#define IDC_DIVIDER   106

Definition at line 87 of file comctl32.h.

◆ IDC_DIVIDEROPEN

#define IDC_DIVIDEROPEN   107

Definition at line 88 of file comctl32.h.

◆ IDC_FINISH_BUTTON

#define IDC_FINISH_BUTTON   12325

Definition at line 49 of file comctl32.h.

◆ IDC_HELP_BTN

#define IDC_HELP_BTN   205

Definition at line 62 of file comctl32.h.

◆ IDC_MOVEBUTTON

#define IDC_MOVEBUTTON   102

Definition at line 85 of file comctl32.h.

◆ IDC_MOVEDN_BTN

#define IDC_MOVEDN_BTN   207

Definition at line 64 of file comctl32.h.

◆ IDC_MOVEUP_BTN

#define IDC_MOVEUP_BTN   206

Definition at line 63 of file comctl32.h.

◆ IDC_NEXT_BUTTON

#define IDC_NEXT_BUTTON   12324

Definition at line 48 of file comctl32.h.

◆ IDC_REMOVE_BTN

#define IDC_REMOVE_BTN   204

Definition at line 61 of file comctl32.h.

◆ IDC_RESET_BTN

#define IDC_RESET_BTN   202

Definition at line 59 of file comctl32.h.

◆ IDC_SUNKEN_LINE

#define IDC_SUNKEN_LINE   12326

Definition at line 50 of file comctl32.h.

◆ IDC_SUNKEN_LINEHEADER

#define IDC_SUNKEN_LINEHEADER   12327

Definition at line 51 of file comctl32.h.

◆ IDC_TABCONTROL

#define IDC_TABCONTROL   12320

Definition at line 45 of file comctl32.h.

◆ IDC_TOOLBARBTN_LBOX

#define IDC_TOOLBARBTN_LBOX   203

Definition at line 60 of file comctl32.h.

◆ IDD_PROPSHEET

#define IDD_PROPSHEET   1006

Definition at line 42 of file comctl32.h.

◆ IDD_TBCUSTOMIZE

#define IDD_TBCUSTOMIZE   200

Definition at line 56 of file comctl32.h.

◆ IDD_WIZARD

#define IDD_WIZARD   1020

Definition at line 43 of file comctl32.h.

◆ IDI_DRAGARROW

#define IDI_DRAGARROW   501

Definition at line 92 of file comctl32.h.

◆ IDI_TT_ERROR_SM

#define IDI_TT_ERROR_SM   28

Definition at line 100 of file comctl32.h.

◆ IDI_TT_INFO_SM

#define IDI_TT_INFO_SM   22

Definition at line 98 of file comctl32.h.

◆ IDI_TT_WARN_SM

#define IDI_TT_WARN_SM   25

Definition at line 99 of file comctl32.h.

◆ IDM_GOTODAY

#define IDM_GOTODAY   4164

Definition at line 77 of file comctl32.h.

◆ IDM_TODAY

#define IDM_TODAY   4163

Definition at line 76 of file comctl32.h.

◆ IDS_BUTTON_CANCEL

#define IDS_BUTTON_CANCEL   3004

Definition at line 107 of file comctl32.h.

◆ IDS_BUTTON_CLOSE

#define IDS_BUTTON_CLOSE   3005

Definition at line 108 of file comctl32.h.

◆ IDS_BUTTON_NO

#define IDS_BUTTON_NO   3001

Definition at line 104 of file comctl32.h.

◆ IDS_BUTTON_OK

#define IDS_BUTTON_OK   3003

Definition at line 106 of file comctl32.h.

◆ IDS_BUTTON_RETRY

#define IDS_BUTTON_RETRY   3002

Definition at line 105 of file comctl32.h.

◆ IDS_BUTTON_YES

#define IDS_BUTTON_YES   3000

Definition at line 103 of file comctl32.h.

◆ IDS_CLOSE

#define IDS_CLOSE   4160

Definition at line 53 of file comctl32.h.

◆ IDS_SEPARATOR

#define IDS_SEPARATOR   1024

Definition at line 66 of file comctl32.h.

◆ IDT_CHECK

#define IDT_CHECK   401

Definition at line 81 of file comctl32.h.

◆ WM_SYSTIMER

#define WM_SYSTIMER   0x0118

Definition at line 111 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 114 of file comctl32.h.

115 {
116  CBF_DROPPED = 0x0001,
117  CBF_BUTTONDOWN = 0x0002,
118  CBF_NOROLLUP = 0x0004,
119  CBF_MEASUREITEM = 0x0008,
120  CBF_FOCUSED = 0x0010,
121  CBF_CAPTURE = 0x0020,
122  CBF_EDIT = 0x0040,
123  CBF_NORESIZE = 0x0080,
124  CBF_NOTIFY = 0x0100,
125  CBF_NOREDRAW = 0x0200,
126  CBF_SELCHANGE = 0x0400,
127  CBF_HOT = 0x0800,
128  CBF_NOEDITNOTIFY = 0x1000,
129  CBF_NOLBSELECT = 0x2000, /* do not change current selection */
130  CBF_BEENFOCUSED = 0x4000, /* has it ever had focus */
131  CBF_EUI = 0x8000,
132 };

Function Documentation

◆ Alloc()

LPVOID WINAPI Alloc ( DWORD  )

Definition at line 71 of file comctl32undoc.c.

72 {
73  return LocalAlloc( LMEM_ZEROINIT, dwSize );
74 }
#define LMEM_ZEROINIT
Definition: winbase.h:356
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1373
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54

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;
971  wndClass.lpfnWndProc = ANIMATE_WindowProc;
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 }
UINT style
Definition: winuser.h:3150
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: animate.c:876
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define ANIMATE_CLASSW
Definition: commctrl.h:4113
#define COLOR_BTNFACE
Definition: winuser.h:918
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682

Referenced by DllMain().

◆ ANIMATE_Unregister()

void ANIMATE_Unregister ( void  )

Definition at line 982 of file animate.c.

983 {
985 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define ANIMATE_CLASSW
Definition: commctrl.h:4113

Referenced by DllMain().

◆ BUTTON_Register()

void BUTTON_Register ( void  )

Definition at line 2126 of file button.c.

2127 {
2128  WNDCLASSW wndClass;
2129 
2130  memset(&wndClass, 0, sizeof(wndClass));
2132  wndClass.lpfnWndProc = BUTTON_WindowProc;
2133  wndClass.cbClsExtra = 0;
2134  wndClass.cbWndExtra = sizeof(BUTTON_INFO *);
2135  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
2136  wndClass.hbrBackground = NULL;
2137  wndClass.lpszClassName = WC_BUTTONW;
2138  RegisterClassW(&wndClass);
2139 }
UINT style
Definition: winuser.h:3150
#define CS_HREDRAW
Definition: winuser.h:648
int cbClsExtra
Definition: winuser.h:3152
static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: button.c:587
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
#define WC_BUTTONW
Definition: commctrl.h:4595
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define memset(x, y, z)
Definition: compat.h:39
#define CS_PARENTDC
Definition: winuser.h:651

Referenced by DllMain().

◆ COMBO_FlipListbox()

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

◆ COMBO_Register()

void COMBO_Register ( void  )

Definition at line 2150 of file combo.c.

2151 {
2152  WNDCLASSW wndClass;
2153 
2154  memset(&wndClass, 0, sizeof(wndClass));
2156  wndClass.lpfnWndProc = COMBO_WindowProc;
2157  wndClass.cbClsExtra = 0;
2158  wndClass.cbWndExtra = sizeof(HEADCOMBO *);
2159  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
2160  wndClass.hbrBackground = NULL;
2161  wndClass.lpszClassName = WC_COMBOBOXW;
2162  RegisterClassW(&wndClass);
2163 }
static LRESULT CALLBACK COMBO_WindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: combo.c:1713
UINT style
Definition: winuser.h:3150
#define CS_HREDRAW
Definition: winuser.h:648
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define memset(x, y, z)
Definition: compat.h:39
#define CS_PARENTDC
Definition: winuser.h:651
#define WC_COMBOBOXW
Definition: commctrl.h:4688

Referenced by DllMain().

◆ COMBOEX_Register()

void COMBOEX_Register ( void  )

Definition at line 2172 of file comboex.c.

2173 {
2174  WNDCLASSW wndClass;
2175 
2176  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2177  wndClass.style = CS_GLOBALCLASS;
2178  wndClass.lpfnWndProc = COMBOEX_WindowProc;
2179  wndClass.cbClsExtra = 0;
2180  wndClass.cbWndExtra = sizeof(COMBOEX_INFO *);
2181  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2182  wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
2183  wndClass.lpszClassName = WC_COMBOBOXEXW;
2184 
2185  RegisterClassW (&wndClass);
2186 }
static LRESULT WINAPI COMBOEX_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: comboex.c:1993
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
#define COLOR_WINDOW
Definition: winuser.h:908
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define WC_COMBOBOXEXW
Definition: commctrl.h:3753
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ COMBOEX_Unregister()

void COMBOEX_Unregister ( void  )

Definition at line 2189 of file comboex.c.

2190 {
2192 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define WC_COMBOBOXEXW
Definition: commctrl.h:3753

Referenced by DllMain().

◆ COMBOLBOX_Register()

void COMBOLBOX_Register ( void  )

Definition at line 3069 of file listbox.c.

3070 {
3071  static const WCHAR combolboxW[] = {'C','o','m','b','o','L','B','o','x',0};
3072  WNDCLASSW wndClass;
3073 
3074  memset(&wndClass, 0, sizeof(wndClass));
3076  wndClass.lpfnWndProc = LISTBOX_WindowProc;
3077  wndClass.cbClsExtra = 0;
3078  wndClass.cbWndExtra = sizeof(LB_DESCR *);
3079  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
3080  wndClass.hbrBackground = NULL;
3081  wndClass.lpszClassName = combolboxW;
3082  RegisterClassW(&wndClass);
3083 }
static const WCHAR combolboxW[]
Definition: listbox.c:141
UINT style
Definition: winuser.h:3150
#define CS_DROPSHADOW
Definition: winuser.h:655
static LRESULT CALLBACK LISTBOX_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: listbox.c:2570
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_SAVEBITS
Definition: winuser.h:652
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define memset(x, y, z)
Definition: compat.h:39

Referenced by DllMain().

◆ COMCTL32_CreateToolTip()

HWND COMCTL32_CreateToolTip ( HWND  )

Definition at line 1544 of file commctrl.c.

1545 {
1546  HWND hwndToolTip;
1547 
1548  hwndToolTip = CreateWindowExW(0, TOOLTIPS_CLASSW, NULL, WS_POPUP,
1550  CW_USEDEFAULT, CW_USEDEFAULT, hwndOwner,
1551  0, 0, 0);
1552 
1553  /* Send NM_TOOLTIPSCREATED notification */
1554  if (hwndToolTip)
1555  {
1556  NMTOOLTIPSCREATED nmttc;
1557  /* true owner can be different if hwndOwner is a child window */
1558  HWND hwndTrueOwner = GetWindow(hwndToolTip, GW_OWNER);
1559  nmttc.hdr.hwndFrom = hwndTrueOwner;
1560  nmttc.hdr.idFrom = GetWindowLongPtrW(hwndTrueOwner, GWLP_ID);
1561  nmttc.hdr.code = NM_TOOLTIPSCREATED;
1562  nmttc.hwndToolTips = hwndToolTip;
1563 
1564  SendMessageW(GetParent(hwndTrueOwner), WM_NOTIFY,
1565  GetWindowLongPtrW(hwndTrueOwner, GWLP_ID), (LPARAM)&nmttc);
1566  }
1567 
1568  return hwndToolTip;
1569 }
#define GetWindowLongPtrW
Definition: winuser.h:4730
UINT code
Definition: winuser.h:3133
UINT_PTR idFrom
Definition: winuser.h:3132
#define CW_USEDEFAULT
Definition: winuser.h:225
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define TOOLTIPS_CLASSW
Definition: commctrl.h:1679
HWND WINAPI GetWindow(_In_ HWND, _In_ UINT)
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)
HWND hwndFrom
Definition: winuser.h:3131
HWND WINAPI GetParent(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WS_POPUP
Definition: pedump.c:616
#define GW_OWNER
Definition: winuser.h:761
#define NM_TOOLTIPSCREATED
Definition: commctrl.h:144
#define GWLP_ID
Definition: winuser.h:854
#define WM_NOTIFY
Definition: richedit.h:61

Referenced by LISTVIEW_WindowProc(), and TREEVIEW_StyleChanged().

◆ COMCTL32_DrawInsertMark()

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

Definition at line 1626 of file commctrl.c.

1627 {
1628  HPEN hPen = CreatePen(PS_SOLID, 1, clrInsertMark);
1629  HPEN hOldPen;
1630  static const DWORD adwPolyPoints[] = {4,4,4};
1631  LONG lCentre = (bHorizontal ?
1632  lpRect->top + (lpRect->bottom - lpRect->top)/2 :
1633  lpRect->left + (lpRect->right - lpRect->left)/2);
1634  LONG l1 = (bHorizontal ? lpRect->left : lpRect->top);
1635  LONG l2 = (bHorizontal ? lpRect->right : lpRect->bottom);
1636  const POINT aptInsertMark[] =
1637  {
1638  /* top (V) or left (H) arrow */
1639  {lCentre , l1 + 2},
1640  {lCentre - 2, l1 },
1641  {lCentre + 3, l1 },
1642  {lCentre + 1, l1 + 2},
1643  /* middle line */
1644  {lCentre , l2 - 2},
1645  {lCentre , l1 - 1},
1646  {lCentre + 1, l1 - 1},
1647  {lCentre + 1, l2 - 2},
1648  /* bottom (V) or right (H) arrow */
1649  {lCentre , l2 - 3},
1650  {lCentre - 2, l2 - 1},
1651  {lCentre + 3, l2 - 1},
1652  {lCentre + 1, l2 - 3},
1653  };
1654  hOldPen = SelectObject(hDC, hPen);
1655  PolyPolyline(hDC, aptInsertMark, adwPolyPoints, ARRAY_SIZE(adwPolyPoints));
1656  SelectObject(hDC, hOldPen);
1657  DeleteObject(hPen);
1658 }
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
LONG top
Definition: windef.h:292
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
LONG left
Definition: windef.h:291
LONG right
Definition: windef.h:293
#define PS_SOLID
Definition: wingdi.h:585
long LONG
Definition: pedump.c:60
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI PolyPolyline(_In_ HDC hdc, _In_ const POINT *apt, _In_reads_(csz) const DWORD *asz, _In_ DWORD csz)
static HDC hDC
Definition: 3dtext.c:33
#define ARRAY_SIZE(a)
Definition: main.h:24
LONG bottom
Definition: windef.h:294

Referenced by TOOLBAR_Refresh().

◆ COMCTL32_EnsureBitmapSize()

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

Definition at line 1678 of file commctrl.c.

1679 {
1680  int cxNew, cyNew;
1681  BITMAP bmp;
1682  HBITMAP hNewBitmap;
1683  HBITMAP hNewDCBitmap, hOldDCBitmap;
1684  HBRUSH hNewDCBrush;
1685  HDC hdcNew, hdcOld;
1686 
1687  if (!GetObjectW(*pBitmap, sizeof(BITMAP), &bmp))
1688  return;
1689  cxNew = (cxMinWidth > bmp.bmWidth ? cxMinWidth : bmp.bmWidth);
1690  cyNew = (cyMinHeight > bmp.bmHeight ? cyMinHeight : bmp.bmHeight);
1691  if (cxNew == bmp.bmWidth && cyNew == bmp.bmHeight)
1692  return;
1693 
1694  hdcNew = CreateCompatibleDC(NULL);
1695  hNewBitmap = CreateBitmap(cxNew, cyNew, bmp.bmPlanes, bmp.bmBitsPixel, NULL);
1696  hNewDCBitmap = SelectObject(hdcNew, hNewBitmap);
1697  hNewDCBrush = SelectObject(hdcNew, CreateSolidBrush(crBackground));
1698 
1699  hdcOld = CreateCompatibleDC(NULL);
1700  hOldDCBitmap = SelectObject(hdcOld, *pBitmap);
1701 
1702  BitBlt(hdcNew, 0, 0, bmp.bmWidth, bmp.bmHeight, hdcOld, 0, 0, SRCCOPY);
1703  if (bmp.bmWidth < cxMinWidth)
1704  PatBlt(hdcNew, bmp.bmWidth, 0, cxNew, bmp.bmHeight, PATCOPY);
1705  if (bmp.bmHeight < cyMinHeight)
1706  PatBlt(hdcNew, 0, bmp.bmHeight, bmp.bmWidth, cyNew, PATCOPY);
1707  if (bmp.bmWidth < cxMinWidth && bmp.bmHeight < cyMinHeight)
1708  PatBlt(hdcNew, bmp.bmWidth, bmp.bmHeight, cxNew, cyNew, PATCOPY);
1709 
1710  SelectObject(hdcNew, hNewDCBitmap);
1711  DeleteObject(SelectObject(hdcNew, hNewDCBrush));
1712  DeleteDC(hdcNew);
1713  SelectObject(hdcOld, hOldDCBitmap);
1714  DeleteDC(hdcOld);
1715 
1716  DeleteObject(*pBitmap);
1717  *pBitmap = hNewBitmap;
1718  return;
1719 }
static HDC
Definition: imagelist.c:92
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
static VOID NTAPI BitBlt(IN ULONG Left, IN ULONG Top, IN ULONG Width, IN ULONG Height, IN PUCHAR Buffer, IN ULONG BitsPerPixel, IN ULONG Delta)
Definition: vga.c:410
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
smooth NULL
Definition: ftsmooth.c:416
BITMAP bmp
Definition: alphablend.c:62
#define PATCOPY
Definition: wingdi.h:334
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
BOOL WINAPI DeleteDC(_In_ HDC)
Definition: bl.h:1331
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
static HBITMAP
Definition: button.c:44
#define SRCCOPY
Definition: wingdi.h:332
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)

Referenced by TOOLBAR_AddBitmapToImageList().

◆ COMCTL32_GetFontMetrics()

void COMCTL32_GetFontMetrics ( HFONT  hFont,
TEXTMETRICW ptm 
)

Definition at line 1721 of file commctrl.c.

1722 {
1723  HDC hdc = GetDC(NULL);
1724  HFONT hOldFont;
1725 
1726  hOldFont = SelectObject(hdc, hFont);
1727  GetTextMetricsW(hdc, ptm);
1728  SelectObject(hdc, hOldFont);
1729  ReleaseDC(NULL, hdc);
1730 }
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
Definition: text.c:221
HDC WINAPI GetDC(_In_opt_ HWND)
static HDC
Definition: imagelist.c:92
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
HFONT hFont
Definition: main.c:53
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
smooth NULL
Definition: ftsmooth.c:416
HDC hdc
Definition: main.c:9
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)

Referenced by STATUSBAR_ComputeHeight().

◆ COMCTL32_IsReflectedMessage()

BOOL COMCTL32_IsReflectedMessage ( UINT  uMsg)

Definition at line 1748 of file commctrl.c.

1749 {
1750  switch (uMsg)
1751  {
1752  case OCM__BASE + WM_COMMAND:
1753  case OCM__BASE + WM_CTLCOLORBTN:
1754  case OCM__BASE + WM_CTLCOLOREDIT:
1755  case OCM__BASE + WM_CTLCOLORDLG:
1760  case OCM__BASE + WM_DRAWITEM:
1761  case OCM__BASE + WM_MEASUREITEM:
1762  case OCM__BASE + WM_DELETEITEM:
1763  case OCM__BASE + WM_VKEYTOITEM:
1764  case OCM__BASE + WM_CHARTOITEM:
1765  case OCM__BASE + WM_COMPAREITEM:
1766  case OCM__BASE + WM_HSCROLL:
1767  case OCM__BASE + WM_VSCROLL:
1768  case OCM__BASE + WM_PARENTNOTIFY:
1769  case OCM__BASE + WM_NOTIFY:
1770  return TRUE;
1771  default:
1772  return FALSE;
1773  }
1774 }
#define TRUE
Definition: types.h:120
#define WM_CTLCOLORDLG
Definition: winuser.h:1752
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1754
#define WM_CTLCOLORLISTBOX
Definition: winuser.h:1750
#define WM_CHARTOITEM
Definition: winuser.h:1631
#define WM_CTLCOLORBTN
Definition: winuser.h:1751
#define WM_PARENTNOTIFY
Definition: winuser.h:1785
#define WM_DELETEITEM
Definition: winuser.h:1629
#define WM_CTLCOLORSCROLLBAR
Definition: winuser.h:1753
#define WM_CTLCOLORMSGBOX
Definition: winuser.h:1748
#define WM_MEASUREITEM
Definition: winuser.h:1628
#define WM_VKEYTOITEM
Definition: winuser.h:1630
#define WM_COMMAND
Definition: winuser.h:1722
#define WM_COMPAREITEM
Definition: winuser.h:1637
#define WM_CTLCOLOREDIT
Definition: winuser.h:1749
#define WM_HSCROLL
Definition: winuser.h:1725
#define WM_DRAWITEM
Definition: winuser.h:1627
#define OCM__BASE
Definition: commctrl.c:1733
#define WM_NOTIFY
Definition: richedit.h:61
#define WM_VSCROLL
Definition: winuser.h:1726

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 1586 of file commctrl.c.

1587 {
1605 }
#define COLOR_3DHILIGHT
Definition: winuser.h:927
#define COLOR_HIGHLIGHT
Definition: winuser.h:916
COLORREF clr3dShadow
Definition: comctl32.h:165
COLORREF clrBtnHighlight
Definition: comctl32.h:157
#define COLOR_BTNHIGHLIGHT
Definition: winuser.h:925
COLORREF clr3dHilight
Definition: comctl32.h:164
COLORREF clrBtnText
Definition: comctl32.h:159
COLORREF clr3dFace
Definition: comctl32.h:167
#define COLOR_WINDOW
Definition: winuser.h:908
DWORD WINAPI GetSysColor(_In_ int)
#define COLOR_3DSHADOW
Definition: winuser.h:921
#define COLOR_INFOBK
Definition: winuser.h:932
COLORREF clrWindowText
Definition: comctl32.h:169
#define COLOR_3DFACE
Definition: winuser.h:919
COLORREF clrActiveCaption
Definition: comctl32.h:171
COLORREF clrInfoBk
Definition: comctl32.h:172
COLORREF clr3dDkShadow
Definition: comctl32.h:166
COLORREF clrHighlightText
Definition: comctl32.h:162
#define COLOR_ACTIVECAPTION
Definition: winuser.h:905
#define COLOR_HIGHLIGHTTEXT
Definition: winuser.h:917
#define COLOR_WINDOWTEXT
Definition: winuser.h:911
#define COLOR_HOTLIGHT
Definition: winuser.h:933
COMCTL32_SysColor comctl32_color
Definition: commctrl.c:82
COLORREF clrHotTrackingColor
Definition: comctl32.h:163
#define COLOR_GRAYTEXT
Definition: winuser.h:922
#define COLOR_BTNFACE
Definition: winuser.h:918
#define COLOR_INFOTEXT
Definition: winuser.h:931
COLORREF clrGrayText
Definition: comctl32.h:170
COLORREF clrBtnFace
Definition: comctl32.h:160
COLORREF clrBtnShadow
Definition: comctl32.h:158
COLORREF clrInfoText
Definition: comctl32.h:173
#define COLOR_BTNSHADOW
Definition: winuser.h:920
COLORREF clrHighlight
Definition: comctl32.h:161
#define COLOR_BTNTEXT
Definition: winuser.h:923
#define COLOR_3DDKSHADOW
Definition: winuser.h:929
COLORREF clrWindow
Definition: comctl32.h:168

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 1666 of file datetime.c.

1667 {
1668  WNDCLASSW wndClass;
1669 
1670  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
1671  wndClass.style = CS_GLOBALCLASS;
1672  wndClass.lpfnWndProc = DATETIME_WindowProc;
1673  wndClass.cbClsExtra = 0;
1674  wndClass.cbWndExtra = sizeof(DATETIME_INFO *);
1675  wndClass.hCursor = LoadCursorW (0, (LPCWSTR)IDC_ARROW);
1676  wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
1678 
1679  RegisterClassW (&wndClass);
1680 }
UINT style
Definition: winuser.h:3150
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
#define COLOR_WINDOW
Definition: winuser.h:908
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
static LRESULT WINAPI DATETIME_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: datetime.c:1542
HCURSOR hCursor
Definition: winuser.h:3156
#define DATETIMEPICK_CLASSW
Definition: commctrl.h:4294
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682

Referenced by DllMain().

◆ DATETIME_Unregister()

void DATETIME_Unregister ( void  )

Definition at line 1684 of file datetime.c.

1685 {
1687 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define DATETIMEPICK_CLASSW
Definition: commctrl.h:4294

Referenced by DllMain().

◆ EDIT_Register()

void EDIT_Register ( void  )

Definition at line 5032 of file edit.c.

5033 {
5034  WNDCLASSW wndClass;
5035 
5036  memset(&wndClass, 0, sizeof(wndClass));
5037  wndClass.style = CS_PARENTDC | CS_GLOBALCLASS | CS_DBLCLKS;
5038  wndClass.lpfnWndProc = EDIT_WindowProc;
5039  wndClass.cbClsExtra = 0;
5040 #ifdef __i386__
5041  wndClass.cbWndExtra = sizeof(EDITSTATE *) + sizeof(WORD);
5042 #else
5043  wndClass.cbWndExtra = sizeof(EDITSTATE *);
5044 #endif
5045  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_IBEAM);
5046  wndClass.hbrBackground = NULL;
5047  wndClass.lpszClassName = WC_EDITW;
5048  RegisterClassW(&wndClass);
5049 }
#define WC_EDITW
Definition: commctrl.h:4658
UINT style
Definition: winuser.h:3150
int cbClsExtra
Definition: winuser.h:3152
#define IDC_IBEAM
Definition: winuser.h:683
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
static LRESULT CALLBACK EDIT_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: edit.c:4521
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
Definition: edit.c:97
#define CS_GLOBALCLASS
Definition: winuser.h:647
unsigned short WORD
Definition: ntddk_ex.h:93
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define memset(x, y, z)
Definition: compat.h:39
#define CS_PARENTDC
Definition: winuser.h:651

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;
273  wndClass.lpfnWndProc = FlatSB_WindowProc;
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 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
#define COLOR_WINDOW
Definition: winuser.h:908
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HCURSOR hCursor
Definition: winuser.h:3156
static LRESULT WINAPI FlatSB_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: flatsb.c:244
HBRUSH hbrBackground
Definition: winuser.h:3157
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:56
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ FLATSB_Unregister()

void FLATSB_Unregister ( void  )

Definition at line 285 of file flatsb.c.

286 {
288 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
static const WCHAR FLATSB_CLASSW[]
Definition: commctrl.h:56

Referenced by DllMain().

◆ Free()

BOOL WINAPI Free ( LPVOID  )

Definition at line 116 of file comctl32undoc.c.

117 {
118  return !LocalFree( lpMem );
119 }
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577

◆ GetSize()

DWORD WINAPI GetSize ( LPVOID  )

Definition at line 135 of file comctl32undoc.c.

136 {
137  return LocalSize( lpMem );
138 }
SIZE_T NTAPI LocalSize(HLOCAL hMem)
Definition: heapmem.c:1777

Referenced by DECLARE_INTERFACE_(), and InitFunctionPtrs().

◆ HEADER_Register()

void HEADER_Register ( void  )

Definition at line 2280 of file header.c.

2281 {
2282  WNDCLASSW wndClass;
2283 
2284  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2285  wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
2286  wndClass.lpfnWndProc = HEADER_WindowProc;
2287  wndClass.cbClsExtra = 0;
2288  wndClass.cbWndExtra = sizeof(HEADER_INFO *);
2289  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2290  wndClass.lpszClassName = WC_HEADERW;
2291 
2292  RegisterClassW (&wndClass);
2293 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
static LRESULT WINAPI HEADER_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: header.c:2130
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
#define IDC_ARROW
Definition: winuser.h:682
#define WC_HEADERW
Definition: commctrl.h:609
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ HEADER_Unregister()

void HEADER_Unregister ( void  )

Definition at line 2297 of file header.c.

2298 {
2300 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define WC_HEADERW
Definition: commctrl.h:609

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;
547  wndClass.lpfnWndProc = HOTKEY_WindowProc;
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
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define HOTKEY_CLASSW
Definition: commctrl.h:2208

Referenced by DllMain().

◆ HOTKEY_Unregister()

void HOTKEY_Unregister ( void  )

Definition at line 559 of file hotkey.c.

560 {
562 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define HOTKEY_CLASSW
Definition: commctrl.h:2208

Referenced by DllMain().

◆ IPADDRESS_Register()

void IPADDRESS_Register ( void  )

Definition at line 650 of file ipaddress.c.

651 {
652  WNDCLASSW wndClass;
653 
654  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
657  wndClass.cbClsExtra = 0;
658  wndClass.cbWndExtra = sizeof(IPADDRESS_INFO *);
659  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_IBEAM);
660  wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
661  wndClass.lpszClassName = WC_IPADDRESSW;
662 
663  RegisterClassW (&wndClass);
664 }
#define WC_IPADDRESSW
Definition: commctrl.h:4444
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
#define CS_HREDRAW
Definition: winuser.h:648
int cbClsExtra
Definition: winuser.h:3152
static LRESULT WINAPI IPADDRESS_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: ipaddress.c:582
#define COLOR_WINDOW
Definition: winuser.h:908
#define IDC_IBEAM
Definition: winuser.h:683
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ IPADDRESS_Unregister()

void IPADDRESS_Unregister ( void  )

Definition at line 667 of file ipaddress.c.

668 {
670 }
#define WC_IPADDRESSW
Definition: commctrl.h:4444
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

◆ LISTBOX_Register()

void LISTBOX_Register ( void  )

Definition at line 3054 of file listbox.c.

3055 {
3056  WNDCLASSW wndClass;
3057 
3058  memset(&wndClass, 0, sizeof(wndClass));
3059  wndClass.style = CS_PARENTDC | CS_DBLCLKS | CS_GLOBALCLASS;
3060  wndClass.lpfnWndProc = LISTBOX_WindowProc;
3061  wndClass.cbClsExtra = 0;
3062  wndClass.cbWndExtra = sizeof(LB_DESCR *);
3063  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
3064  wndClass.hbrBackground = NULL;
3065  wndClass.lpszClassName = WC_LISTBOXW;
3066  RegisterClassW(&wndClass);
3067 }
UINT style
Definition: winuser.h:3150
static LRESULT CALLBACK LISTBOX_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: listbox.c:2570
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
#define WC_LISTBOXW
Definition: commctrl.h:4682
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define memset(x, y, z)
Definition: compat.h:39
#define CS_PARENTDC
Definition: winuser.h:651

Referenced by DllMain().

◆ LISTVIEW_Register()

void LISTVIEW_Register ( void  )

Definition at line 11859 of file listview.c.

11860 {
11861  WNDCLASSW wndClass;
11862 
11863  ZeroMemory(&wndClass, sizeof(WNDCLASSW));
11864  wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
11865  wndClass.lpfnWndProc = LISTVIEW_WindowProc;
11866  wndClass.cbClsExtra = 0;
11867  wndClass.cbWndExtra = sizeof(LISTVIEW_INFO *);
11868  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
11869  wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
11870  wndClass.lpszClassName = WC_LISTVIEWW;
11871  RegisterClassW(&wndClass);
11872 }
UINT style
Definition: winuser.h:3150
#define WC_LISTVIEWW
Definition: commctrl.h:2229
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
#define COLOR_WINDOW
Definition: winuser.h:908
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
static LRESULT WINAPI LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: listview.c:11340
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ LISTVIEW_Unregister()

void LISTVIEW_Unregister ( void  )

Definition at line 11884 of file listview.c.

11885 {
11887 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define WC_LISTVIEWW
Definition: commctrl.h:2229
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

◆ MirrorIcon()

BOOL WINAPI MirrorIcon ( HICON phicon1,
HICON phicon2 
)

Definition at line 1789 of file commctrl.c.

1790 {
1791  FIXME("(%p, %p): stub\n", phicon1, phicon2);
1792  return FALSE;
1793 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ MONTHCAL_CalculateDayOfWeek()

int MONTHCAL_CalculateDayOfWeek ( SYSTEMTIME date,
BOOL  inplace 
)

Definition at line 470 of file monthcal.c.

471 {
472  SYSTEMTIME st = st_null;
473  FILETIME ft;
474 
475  MONTHCAL_CopyDate(date, &st);
476 
477  SystemTimeToFileTime(&st, &ft);
478  FileTimeToSystemTime(&ft, &st);
479 
480  if (inplace) date->wDayOfWeek = st.wDayOfWeek;
481 
482  return st.wDayOfWeek;
483 }
WORD wDayOfWeek
Definition: winbase.h:872
static void MONTHCAL_CopyDate(const SYSTEMTIME *from, SYSTEMTIME *to)
Definition: monthcal.c:282
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
Definition: time.c:178
BOOL WINAPI SystemTimeToFileTime(IN CONST SYSTEMTIME *lpSystemTime, OUT LPFILETIME lpFileTime)
Definition: time.c:148
__u16 date
Definition: mkdosfs.c:366
static const SYSTEMTIME st_null
Definition: monthcal.c:152

◆ MONTHCAL_CompareSystemTime()

LONG MONTHCAL_CompareSystemTime ( const SYSTEMTIME first,
const SYSTEMTIME second 
)

Definition at line 305 of file monthcal.c.

306 {
307  FILETIME ft_first, ft_second;
308 
309  SystemTimeToFileTime(first, &ft_first);
310  SystemTimeToFileTime(second, &ft_second);
311 
312  return CompareFileTime(&ft_first, &ft_second);
313 }
const GLint * first
Definition: glext.h:5794
LONG WINAPI CompareFileTime(IN CONST FILETIME *lpFileTime1, IN CONST FILETIME *lpFileTime2)
Definition: time.c:106
BOOL WINAPI SystemTimeToFileTime(IN CONST SYSTEMTIME *lpSystemTime, OUT LPFILETIME lpFileTime)
Definition: time.c:148

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

◆ MONTHCAL_MonthLength()

int MONTHCAL_MonthLength ( int  month,
int  year 
)

Definition at line 217 of file monthcal.c.

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

◆ MONTHCAL_Register()

void MONTHCAL_Register ( void  )

Definition at line 3037 of file monthcal.c.

3038 {
3039  WNDCLASSW wndClass;
3040 
3041  ZeroMemory(&wndClass, sizeof(WNDCLASSW));
3042  wndClass.style = CS_GLOBALCLASS;
3043  wndClass.lpfnWndProc = MONTHCAL_WindowProc;
3044  wndClass.cbClsExtra = 0;
3045  wndClass.cbWndExtra = sizeof(MONTHCAL_INFO *);
3046  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
3047  wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
3048  wndClass.lpszClassName = MONTHCAL_CLASSW;
3049 
3050  RegisterClassW(&wndClass);
3051 }
UINT style
Definition: winuser.h:3150
#define MONTHCAL_CLASSW
Definition: commctrl.h:4147
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
#define COLOR_WINDOW
Definition: winuser.h:908
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
static LRESULT WINAPI MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: monthcal.c:2885
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ MONTHCAL_Unregister()

void MONTHCAL_Unregister ( void  )

Definition at line 3055 of file monthcal.c.

3056 {
3058 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define MONTHCAL_CLASSW
Definition: commctrl.h:4147
smooth NULL
Definition: ftsmooth.c:416

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);
124  wndClass.lpszClassName = WC_NATIVEFONTCTLW;
125 
126  RegisterClassW (&wndClass);
127 }
UINT style
Definition: winuser.h:3150
static LRESULT WINAPI NATIVEFONT_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: nativefont.c:75
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define WC_NATIVEFONTCTLW
Definition: commctrl.h:4578
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define COLOR_BTNFACE
Definition: winuser.h:918
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ NATIVEFONT_Unregister()

void NATIVEFONT_Unregister ( void  )

Definition at line 131 of file nativefont.c.

132 {
134 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define WC_NATIVEFONTCTLW
Definition: commctrl.h:4578

Referenced by DllMain().

◆ PAGER_Register()

void PAGER_Register ( void  )

Definition at line 1103 of file pager.c.

1104 {
1105  WNDCLASSW wndClass;
1106 
1107  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
1108  wndClass.style = CS_GLOBALCLASS;
1109  wndClass.lpfnWndProc = PAGER_WindowProc;
1110  wndClass.cbClsExtra = 0;
1111  wndClass.cbWndExtra = sizeof(PAGER_INFO *);
1112  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
1113  wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
1114  wndClass.lpszClassName = WC_PAGESCROLLERW;
1115 
1116  RegisterClassW (&wndClass);
1117 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define WC_PAGESCROLLERW
Definition: commctrl.h:4469
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define COLOR_BTNFACE
Definition: winuser.h:918
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
static LRESULT WINAPI PAGER_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: pager.c:1002
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ PAGER_Unregister()

void PAGER_Unregister ( void  )

Definition at line 1121 of file pager.c.

1122 {
1124 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define WC_PAGESCROLLERW
Definition: commctrl.h:4469

Referenced by DllMain().

◆ PROGRESS_Register()

void PROGRESS_Register ( void  )

Definition at line 747 of file progress.c.

748 {
749  WNDCLASSW wndClass;
750 
751  ZeroMemory (&wndClass, sizeof(wndClass));
752  wndClass.style = CS_GLOBALCLASS | CS_VREDRAW | CS_HREDRAW;
753  wndClass.lpfnWndProc = ProgressWindowProc;
754  wndClass.cbClsExtra = 0;
755  wndClass.cbWndExtra = sizeof (PROGRESS_INFO *);
756  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
757  wndClass.lpszClassName = PROGRESS_CLASSW;
758 
759  RegisterClassW (&wndClass);
760 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
#define CS_HREDRAW
Definition: winuser.h:648
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define PROGRESS_CLASSW
Definition: commctrl.h:2148
#define CS_VREDRAW
Definition: winuser.h:653
static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: progress.c:528
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HCURSOR hCursor
Definition: winuser.h:3156
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ PROGRESS_Unregister()

void PROGRESS_Unregister ( void  )

Definition at line 768 of file progress.c.

769 {
771 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define PROGRESS_CLASSW
Definition: commctrl.h:2148

Referenced by DllMain().

◆ ReAlloc()

LPVOID WINAPI ReAlloc ( LPVOID  ,
DWORD   
)

Definition at line 95 of file comctl32undoc.c.

96 {
97  if (lpSrc)
98  return LocalReAlloc( lpSrc, dwSize, LMEM_ZEROINIT | LMEM_MOVEABLE );
99  else
100  return LocalAlloc( LMEM_ZEROINIT, dwSize);
101 }
#define LMEM_ZEROINIT
Definition: winbase.h:356
#define LMEM_MOVEABLE
Definition: winbase.h:350
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:1608
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1373
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54

Referenced by Str_SetPtrAtoW(), and Str_SetPtrWtoA().

◆ REBAR_Register()

void REBAR_Register ( void  )

Definition at line 3826 of file rebar.c.

3827 {
3828  WNDCLASSW wndClass;
3829 
3830  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
3831  wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
3832  wndClass.lpfnWndProc = REBAR_WindowProc;
3833  wndClass.cbClsExtra = 0;
3834  wndClass.cbWndExtra = sizeof(REBAR_INFO *);
3835  wndClass.hCursor = 0;
3836  wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
3837 #if GLATESTING
3838  wndClass.hbrBackground = CreateSolidBrush(RGB(0,128,0));
3839 #endif
3840  wndClass.lpszClassName = REBARCLASSNAMEW;
3841 
3842  RegisterClassW (&wndClass);
3843 
3846 
3847 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
static UINT mindragy
Definition: rebar.c:271
#define REBARCLASSNAMEW
Definition: commctrl.h:1435
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define SM_CXDRAG
Definition: winuser.h:1018
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
#define RGB(r, g, b)
Definition: wingdi.h:2935
int WINAPI GetSystemMetrics(_In_ int)
static LRESULT WINAPI REBAR_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: rebar.c:3598
#define COLOR_BTNFACE
Definition: winuser.h:918
static UINT mindragx
Definition: rebar.c:270
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
#define SM_CYDRAG
Definition: winuser.h:1019

Referenced by DllMain().

◆ REBAR_Unregister()

void REBAR_Unregister ( void  )

Definition at line 3851 of file rebar.c.

3852 {
3854 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define REBARCLASSNAMEW
Definition: commctrl.h:1435
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

◆ set_control_clipping()

HRGN set_control_clipping ( HDC  hdc,
const RECT rect 
)

Definition at line 239 of file button.c.

240 {
241  RECT rc = *rect;
242  HRGN hrgn = CreateRectRgn( 0, 0, 0, 0 );
243 
244  if (GetClipRgn( hdc, hrgn ) != 1)
245  {
246  DeleteObject( hrgn );
247  hrgn = 0;
248  }
249  DPtoLP( hdc, (POINT *)&rc, 2 );
250  if (GetLayout( hdc ) & LAYOUT_RTL) /* compensate for the shifting done by IntersectClipRect */
251  {
252  rc.left++;
253  rc.right++;
254  }
255  IntersectClipRect( hdc, rc.left, rc.top, rc.right, rc.bottom );
256  return hrgn;
257 }
#define LAYOUT_RTL
Definition: wingdi.h:1370
LONG top
Definition: windef.h:292
int WINAPI IntersectClipRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
LONG left
Definition: windef.h:291
LONG right
Definition: windef.h:293
BOOL WINAPI DPtoLP(_In_ HDC hdc, _Inout_updates_(c) LPPOINT lppt, _In_ int c)
& rect
Definition: startmenu.cpp:1413
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
HDC hdc
Definition: main.c:9
static HRGN hrgn
Definition: win.c:55
DWORD WINAPI GetLayout(_In_ HDC hdc)
Definition: coord.c:741
LONG bottom
Definition: windef.h:294
int WINAPI GetClipRgn(_In_ HDC, _In_ HRGN)

◆ SetPathWordBreakProc()

LRESULT WINAPI SetPathWordBreakProc ( HWND  hwnd,
BOOL  bSet 
)

Definition at line 1834 of file commctrl.c.

1835 {
1837  (LPARAM)(bSet ? PathWordBreakProc : NULL));
1838 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define EM_SETWORDBREAKPROC
Definition: winuser.h:2002
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static int CALLBACK PathWordBreakProc(LPCWSTR lpch, int ichCurrent, int cch, int code)
Definition: commctrl.c:1808

Referenced by COMBOEX_SetExtendedStyle().

◆ STATIC_Register()

void STATIC_Register ( void  )

Definition at line 780 of file static.c.

781 {
782  WNDCLASSW wndClass;
783 
784  memset(&wndClass, 0, sizeof(wndClass));
786  wndClass.lpfnWndProc = STATIC_WindowProc;
787  wndClass.cbClsExtra = 0;
788  wndClass.cbWndExtra = STATIC_EXTRA_BYTES;
789  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
790  wndClass.hbrBackground = NULL;
791  wndClass.lpszClassName = WC_STATICW;
792  RegisterClassW(&wndClass);
793 }
UINT style
Definition: winuser.h:3150
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3159
static LRESULT CALLBACK STATIC_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: static.c:314
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
#define STATIC_EXTRA_BYTES
Definition: static.c:61
HBRUSH hbrBackground
Definition: winuser.h:3157
#define WC_STATICW
Definition: commctrl.h:4651
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define memset(x, y, z)
Definition: compat.h:39
#define CS_PARENTDC
Definition: winuser.h:651

Referenced by DllMain().

◆ STATUS_Register()

void STATUS_Register ( void  )

Definition at line 1329 of file status.c.

1330 {
1331  WNDCLASSW wndClass;
1332 
1333  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
1334  wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_VREDRAW;
1335  wndClass.lpfnWndProc = StatusWindowProc;
1336  wndClass.cbClsExtra = 0;
1337  wndClass.cbWndExtra = sizeof(STATUS_INFO *);
1338  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
1339  wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
1340  wndClass.lpszClassName = STATUSCLASSNAMEW;
1341 
1342  RegisterClassW (&wndClass);
1343 }
#define STATUSCLASSNAMEW
Definition: commctrl.h:1908
UINT style
Definition: winuser.h:3150
static LRESULT WINAPI StatusWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: status.c:1170
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define COLOR_BTNFACE
Definition: winuser.h:918
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ STATUS_Unregister()

void STATUS_Unregister ( void  )

Definition at line 1353 of file status.c.

1354 {
1356 }
#define STATUSCLASSNAMEW
Definition: commctrl.h:1908
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

◆ Str_GetPtrA()

INT WINAPI Str_GetPtrA ( LPCSTR  ,
LPSTR  ,
INT   
)

Definition at line 136 of file string.c.

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

Referenced by InitFunctionPtrs().

◆ Str_GetPtrAtoW()

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

Definition at line 950 of file comctl32undoc.c.

951 {
952  INT len;
953 
954  TRACE("(%s %p %d)\n", debugstr_a(lpSrc), lpDest, nMaxLen);
955 
956  if (!lpDest && lpSrc)
957  return MultiByteToWideChar(CP_ACP, 0, lpSrc, -1, 0, 0);
958 
959  if (nMaxLen == 0)
960  return 0;
961 
962  if (lpSrc == NULL) {
963  lpDest[0] = '\0';
964  return 0;
965  }
966 
967  len = MultiByteToWideChar(CP_ACP, 0, lpSrc, -1, 0, 0);
968  if (len >= nMaxLen)
969  len = nMaxLen - 1;
970 
971  MultiByteToWideChar(CP_ACP, 0, lpSrc, -1, lpDest, len);
972  lpDest[len] = '\0';
973 
974  return len;
975 }
#define CP_ACP
Definition: compat.h:99
int32_t INT
Definition: typedefs.h:56
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define debugstr_a
Definition: kernel32.h:31
GLenum GLsizei len
Definition: glext.h:6722
#define MultiByteToWideChar
Definition: compat.h:100

Referenced by TOOLTIPS_GetDispInfoA().

◆ Str_GetPtrW()

INT WINAPI Str_GetPtrW ( LPCWSTR  ,
LPWSTR  ,
INT   
)

Definition at line 204 of file string.c.

205 {
206  INT len;
207 
208  TRACE("(%p %p %d)\n", lpSrc, lpDest, nMaxLen);
209 
210  if (!lpDest && lpSrc)
211  return strlenW (lpSrc);
212 
213  if (nMaxLen == 0)
214  return 0;
215 
216  if (lpSrc == NULL) {
217  lpDest[0] = '\0';
218  return 0;
219  }
220 
221  len = strlenW (lpSrc);
222  if (len >= nMaxLen)
223  len = nMaxLen - 1;
224 
225  RtlMoveMemory (lpDest, lpSrc, len*sizeof(WCHAR));
226  lpDest[len] = '\0';
227 
228  return len;
229 }
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
int32_t INT
Definition: typedefs.h:56
#define RtlMoveMemory(Destination, Source, Length)
Definition: typedefs.h:263
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
static size_t len
Definition: string.c:60
GLenum GLsizei len
Definition: glext.h:6722

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 909 of file comctl32undoc.c.

910 {
911  INT len;
912 
913  TRACE("(%s %p %d)\n", debugstr_w(lpSrc), lpDest, nMaxLen);
914 
915  if (!lpDest && lpSrc)
916  return WideCharToMultiByte(CP_ACP, 0, lpSrc, -1, 0, 0, NULL, NULL);
917 
918  if (nMaxLen == 0)
919  return 0;
920 
921  if (lpSrc == NULL) {
922  lpDest[0] = '\0';
923  return 0;
924  }
925 
926  len = WideCharToMultiByte(CP_ACP, 0, lpSrc, -1, 0, 0, NULL, NULL);
927  if (len >= nMaxLen)
928  len = nMaxLen - 1;
929 
930  WideCharToMultiByte(CP_ACP, 0, lpSrc, -1, lpDest, len, NULL, NULL);
931  lpDest[len] = '\0';
932 
933  return len;
934 }
#define WideCharToMultiByte
Definition: compat.h:101
#define CP_ACP
Definition: compat.h:99
int32_t INT
Definition: typedefs.h:56
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
GLenum GLsizei len
Definition: glext.h:6722

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

◆ Str_SetPtrAtoW()

BOOL Str_SetPtrAtoW ( LPWSTR lppDest,
LPCSTR  lpSrc 
)

Definition at line 995 of file comctl32undoc.c.

996 {
997  TRACE("(%p %s)\n", lppDest, lpSrc);
998 
999  if (lpSrc) {
1000  INT len = MultiByteToWideChar(CP_ACP,0,lpSrc,-1,NULL,0);
1001  LPWSTR ptr = ReAlloc (*lppDest, len*sizeof(WCHAR));
1002 
1003  if (!ptr)
1004  return FALSE;
1005  MultiByteToWideChar(CP_ACP,0,lpSrc,-1,ptr,len);
1006  *lppDest = ptr;
1007  }
1008  else {
1009  Free (*lppDest);
1010  *lppDest = NULL;
1011  }
1012 
1013  return TRUE;
1014 }
#define TRUE
Definition: types.h:120
#define CP_ACP
Definition: compat.h:99
int32_t INT
Definition: typedefs.h:56
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL WINAPI Free(LPVOID lpMem)
GLenum GLsizei len
Definition: glext.h:6722
#define MultiByteToWideChar
Definition: compat.h:100
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LPVOID WINAPI ReAlloc(LPVOID lpSrc, DWORD dwSize)
Definition: comctl32undoc.c:95

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 1033 of file comctl32undoc.c.

1034 {
1035  TRACE("(%p %s)\n", lppDest, debugstr_w(lpSrc));
1036 
1037  if (lpSrc) {
1038  INT len = WideCharToMultiByte(CP_ACP,0,lpSrc,-1,NULL,0,NULL,FALSE);
1039  LPSTR ptr = ReAlloc (*lppDest, len*sizeof(CHAR));
1040 
1041  if (!ptr)
1042  return FALSE;
1044  *lppDest = ptr;
1045  }
1046  else {
1047  Free (*lppDest);
1048  *lppDest = NULL;
1049  }
1050 
1051  return TRUE;
1052 }
#define TRUE
Definition: types.h:120
#define WideCharToMultiByte
Definition: compat.h:101
#define CP_ACP
Definition: compat.h:99
char CHAR
Definition: xmlstorage.h:175
char * LPSTR
Definition: xmlstorage.h:182
int32_t INT
Definition: typedefs.h:56
#define debugstr_w
Definition: kernel32.h:32
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
BOOL WINAPI Free(LPVOID lpMem)
GLenum GLsizei len
Definition: glext.h:6722
LPVOID WINAPI ReAlloc(LPVOID lpSrc, DWORD dwSize)
Definition: comctl32undoc.c:95

Referenced by HEADER_CopyHDItemForNotify(), and notify_forward_header().

◆ SYSLINK_Register()

void SYSLINK_Register ( void  )

Definition at line 1742 of file syslink.c.

1743 {
1744  WNDCLASSW wndClass;
1745 
1746  ZeroMemory (&wndClass, sizeof(wndClass));
1747  wndClass.style = CS_GLOBALCLASS | CS_VREDRAW | CS_HREDRAW;
1748  wndClass.lpfnWndProc = SysLinkWindowProc;
1749  wndClass.cbClsExtra = 0;
1750  wndClass.cbWndExtra = sizeof (SYSLINK_INFO *);
1751  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
1752  wndClass.lpszClassName = WC_LINK;
1753 
1754  RegisterClassW (&wndClass);
1755 }
#define WC_LINK
Definition: commctrl.h:4708
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
#define CS_HREDRAW
Definition: winuser.h:648
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HCURSOR hCursor
Definition: winuser.h:3156
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ SYSLINK_Unregister()

void SYSLINK_Unregister ( void  )

Definition at line 1763 of file syslink.c.

1764 {
1766 }
#define WC_LINK
Definition: commctrl.h:4708
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

◆ TAB_Register()

void TAB_Register ( void  )

Definition at line 3463 of file tab.c.

3464 {
3465  WNDCLASSW wndClass;
3466 
3467  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
3469  wndClass.lpfnWndProc = TAB_WindowProc;
3470  wndClass.cbClsExtra = 0;
3471  wndClass.cbWndExtra = sizeof(TAB_INFO *);
3472  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
3473  wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
3474  wndClass.lpszClassName = WC_TABCONTROLW;
3475 
3476  RegisterClassW (&wndClass);
3477 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
#define CS_HREDRAW
Definition: winuser.h:648
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define COLOR_BTNFACE
Definition: winuser.h:918
#define WC_TABCONTROLW
Definition: commctrl.h:3907
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
Definition: tab.c:92
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static LRESULT WINAPI TAB_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: tab.c:3283

Referenced by DllMain().

◆ TAB_Unregister()

void TAB_Unregister ( void  )

Definition at line 3481 of file tab.c.

3482 {
3484 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define WC_TABCONTROLW
Definition: commctrl.h:3907

Referenced by DllMain().

◆ THEMING_CallOriginalClass()

LRESULT THEMING_CallOriginalClass ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
)

Definition at line 208 of file theming.c.

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

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 }
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
Definition: actctx.c:237
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
#define WARN(fmt,...)
Definition: debug.h:111
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
uint32_t ULONG_PTR
Definition: typedefs.h:63
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
Definition: actctx.c:268
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
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
static const struct ThemingSubclass subclasses[]
static ATOM atRefDataProp
Definition: theming.c:63
#define NUM_SUBCLASSES
Definition: theming.c:60
static const WNDPROC subclassProcs[NUM_SUBCLASSES]
Definition: theming.c:92
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
UINT cbSize
Definition: winuser.h:3190
static ATOM atSubclassProp
Definition: theming.c:64
#define CS_GLOBALCLASS
Definition: winuser.h:647
int ret
static WNDPROC originalProcs[NUM_SUBCLASSES]
Definition: theming.c:62
#define ERR(fmt,...)
Definition: debug.h:109
HMODULE COMCTL32_hModule
Definition: commctrl.c:79
ATOM WINAPI GlobalAddAtomW(LPCWSTR lpString)
Definition: atom.c:444
BOOL WINAPI IsThemeActive(void)
Definition: system.c:606

Referenced by DllMain().

◆ THEMING_SetSubclassData()

void THEMING_SetSubclassData ( HWND  ,
ULONG_PTR   
)

Definition at line 220 of file theming.c.

221 {
222  SetPropW (wnd, (LPCWSTR)MAKEINTATOM(atRefDataProp), (HANDLE)refData);
223 }
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
static ATOM atRefDataProp
Definition: theming.c:63
BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE)
#define MAKEINTATOM(i)
Definition: winbase.h:1416

◆ 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 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
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
smooth NULL
Definition: ftsmooth.c:416
static const struct ThemingSubclass subclasses[]
#define NUM_SUBCLASSES
Definition: theming.c:60
static ATOM atSubclassProp
Definition: theming.c:64

Referenced by DllMain().

◆ TOOLBAR_Register()

void TOOLBAR_Register ( void  )

Definition at line 7176 of file toolbar.c.

7177 {
7178  WNDCLASSW wndClass;
7179 
7180  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
7181  wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
7182  wndClass.lpfnWndProc = ToolbarWindowProc;
7183  wndClass.cbClsExtra = 0;
7184  wndClass.cbWndExtra = sizeof(TOOLBAR_INFO *);
7185  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
7186  wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
7187  wndClass.lpszClassName = TOOLBARCLASSNAMEW;
7188 
7189  RegisterClassW (&wndClass);
7190 }
UINT style
Definition: winuser.h:3150
#define TOOLBARCLASSNAMEW
Definition: commctrl.h:915
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
static LRESULT WINAPI ToolbarWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: toolbar.c:6751
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define COLOR_BTNFACE
Definition: winuser.h:918
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ TOOLBAR_Unregister()

void TOOLBAR_Unregister ( void  )

Definition at line 7194 of file toolbar.c.

7195 {
7197 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
#define TOOLBARCLASSNAMEW
Definition: commctrl.h:915
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

◆ TOOLTIPS_Register()

void TOOLTIPS_Register ( void  )

Definition at line 2355 of file tooltips.c.

2356 {
2357  WNDCLASSW wndClass;
2358 
2359  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2360  wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_SAVEBITS;
2361  wndClass.lpfnWndProc = TOOLTIPS_WindowProc;
2362  wndClass.cbClsExtra = 0;
2363  wndClass.cbWndExtra = sizeof(TOOLTIPS_INFO *);
2364  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2365  wndClass.hbrBackground = 0;
2366  wndClass.lpszClassName = TOOLTIPS_CLASSW;
2367 
2368  RegisterClassW (&wndClass);
2369 
2377 }
#define IDI_TT_WARN_SM
Definition: comctl32.h:99
#define MAKEINTRESOURCE
Definition: winuser.h:591
static LRESULT CALLBACK TOOLTIPS_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: tooltips.c:2175
#define IMAGE_ICON
Definition: winuser.h:212
UINT style
Definition: winuser.h:3150
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
#define IDI_TT_INFO_SM
Definition: comctl32.h:98
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
Definition: cursoricon.c:2172
WNDPROC lpfnWndProc
Definition: winuser.h:3151
#define IDI_TT_ERROR_SM
Definition: comctl32.h:100
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
static HICON hTooltipIcons[TTI_ERROR+1]
Definition: tooltips.c:109
#define TTI_WARNING
Definition: commctrl.h:1753
#define TTI_NONE
Definition: commctrl.h:1751
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define TTI_INFO
Definition: commctrl.h:1752
#define TOOLTIPS_CLASSW
Definition: commctrl.h:1679
#define CS_SAVEBITS
Definition: winuser.h:652
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HMODULE COMCTL32_hModule
Definition: commctrl.c:79
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
#define TTI_ERROR
Definition: commctrl.h:1754
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ TOOLTIPS_Unregister()

void TOOLTIPS_Unregister ( void  )

Definition at line 2381 of file tooltips.c.

2382 {
2383  int i;
2384  for (i = TTI_INFO; i <= TTI_ERROR; i++)
2387 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2022
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
smooth NULL
Definition: ftsmooth.c:416
static HICON hTooltipIcons[TTI_ERROR+1]
Definition: tooltips.c:109
#define TTI_INFO
Definition: commctrl.h:1752
#define TOOLTIPS_CLASSW
Definition: commctrl.h:1679
#define TTI_ERROR
Definition: commctrl.h:1754

Referenced by DllMain().

◆ TRACKBAR_Register()

void TRACKBAR_Register ( void  )

Definition at line 2049 of file trackbar.c.

2050 {
2051  WNDCLASSW wndClass;
2052 
2053  ZeroMemory (&wndClass, sizeof(WNDCLASSW));
2054  wndClass.style = CS_GLOBALCLASS;
2055  wndClass.lpfnWndProc = TRACKBAR_WindowProc;
2056  wndClass.cbClsExtra = 0;
2057  wndClass.cbWndExtra = sizeof(TRACKBAR_INFO *);
2058  wndClass.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
2059  wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
2060  wndClass.lpszClassName = TRACKBAR_CLASSW;
2061 
2062  RegisterClassW (&wndClass);
2063 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define COLOR_BTNFACE
Definition: winuser.h:918
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
#define TRACKBAR_CLASSW
Definition: commctrl.h:1983
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static LRESULT WINAPI TRACKBAR_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: trackbar.c:1860

Referenced by DllMain().

◆ TRACKBAR_Unregister()

void TRACKBAR_Unregister ( void  )

Definition at line 2066 of file trackbar.c.

2067 {
2069 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define TRACKBAR_CLASSW
Definition: commctrl.h:1983

Referenced by DllMain().

◆ TREEVIEW_Register()

void TREEVIEW_Register ( void  )

Definition at line 5924 of file treeview.c.

5925 {
5926  WNDCLASSW wndClass;
5927 
5928  TRACE("\n");
5929 
5930  ZeroMemory(&wndClass, sizeof(WNDCLASSW));
5931  wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS;
5932  wndClass.lpfnWndProc = TREEVIEW_WindowProc;
5933  wndClass.cbClsExtra = 0;
5934  wndClass.cbWndExtra = sizeof(TREEVIEW_INFO *);
5935 
5936  wndClass.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW);
5937  wndClass.hbrBackground = 0;
5938  wndClass.lpszClassName = WC_TREEVIEWW;
5939 
5940  RegisterClassW(&wndClass);
5941 }
#define WC_TREEVIEWW
Definition: commctrl.h:3215
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define TRACE(s)
Definition: solgame.cpp:4
static LRESULT WINAPI TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: treeview.c:5655
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define CS_DBLCLKS
Definition: winuser.h:646
HCURSOR hCursor
Definition: winuser.h:3156
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by DllMain().

◆ TREEVIEW_Unregister()

void TREEVIEW_Unregister ( void  )

Definition at line 5945 of file treeview.c.

5946 {
5948 }
#define WC_TREEVIEWW
Definition: commctrl.h:3215
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416

Referenced by DllMain().

◆ UPDOWN_Register()

void UPDOWN_Register ( void  )

Definition at line 1175 of file updown.c.

1176 {
1177  WNDCLASSW wndClass;
1178 
1179  ZeroMemory( &wndClass, sizeof( WNDCLASSW ) );
1180  wndClass.style = CS_GLOBALCLASS | CS_VREDRAW | CS_HREDRAW;
1181  wndClass.lpfnWndProc = UpDownWindowProc;
1182  wndClass.cbClsExtra = 0;
1183  wndClass.cbWndExtra = sizeof(UPDOWN_INFO*);
1184  wndClass.hCursor = LoadCursorW( 0, (LPWSTR)IDC_ARROW );
1185  wndClass.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
1186  wndClass.lpszClassName = UPDOWN_CLASSW;
1187 
1188  RegisterClassW( &wndClass );
1189 }
UINT style
Definition: winuser.h:3150
#define ZeroMemory
Definition: winbase.h:1635
#define CS_HREDRAW
Definition: winuser.h:648
int cbClsExtra
Definition: winuser.h:3152
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
WNDPROC lpfnWndProc
Definition: winuser.h:3151
LPCWSTR lpszClassName
Definition: winuser.h:3159
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3153
#define CS_GLOBALCLASS
Definition: winuser.h:647
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
#define COLOR_BTNFACE
Definition: winuser.h:918
HCURSOR hCursor
Definition: winuser.h:3156
static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: updown.c:890
HBRUSH hbrBackground
Definition: winuser.h:3157
#define IDC_ARROW
Definition: winuser.h:682
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define UPDOWN_CLASSW
Definition: commctrl.h:2091

Referenced by DllMain().

◆ UPDOWN_Unregister()

void UPDOWN_Unregister ( void  )

Definition at line 1197 of file updown.c.

1198 {
1200 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
smooth NULL
Definition: ftsmooth.c:416
#define UPDOWN_CLASSW
Definition: commctrl.h:2091

Referenced by DllMain().

Variable Documentation

◆ DECLSPEC_HIDDEN

Definition at line 39 of file comctl32.h.