1 /******************************************************************************
3 * Common definitions (resource ids and global variables)
5 * Copyright 1999 Thuy Nguyen
6 * Copyright 1999 Eric Kohl
7 * Copyright 2002 Dimitrie O. Paun
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #ifndef __WINE_COMCTL32_H
25 #define __WINE_COMCTL32_H
38 extern HMODULE COMCTL32_hModule DECLSPEC_HIDDEN
;
39 extern HBRUSH COMCTL32_hPattern55AABrush DECLSPEC_HIDDEN
;
41 /* has a value of: 0, CCS_TOP, CCS_NOMOVEY, CCS_BOTTOM */
42 #define CCS_LAYOUT_MASK 0x3
44 /* Property sheet / Wizard */
45 #define IDD_PROPSHEET 1006
46 #define IDD_WIZARD 1020
48 #define IDC_TABCONTROL 12320
49 #define IDC_APPLY_BUTTON 12321
50 #define IDC_BACK_BUTTON 12323
51 #define IDC_NEXT_BUTTON 12324
52 #define IDC_FINISH_BUTTON 12325
53 #define IDC_SUNKEN_LINE 12326
54 #define IDC_SUNKEN_LINEHEADER 12327
56 #define IDS_CLOSE 4160
58 /* Toolbar customization dialog */
59 #define IDD_TBCUSTOMIZE 200
61 #define IDC_AVAILBTN_LBOX 201
62 #define IDC_RESET_BTN 202
63 #define IDC_TOOLBARBTN_LBOX 203
64 #define IDC_REMOVE_BTN 204
65 #define IDC_HELP_BTN 205
66 #define IDC_MOVEUP_BTN 206
67 #define IDC_MOVEDN_BTN 207
69 #define IDS_SEPARATOR 1024
71 /* Toolbar imagelist bitmaps */
72 #define IDB_STD_SMALL 120
73 #define IDB_STD_LARGE 121
74 #define IDB_VIEW_SMALL 124
75 #define IDB_VIEW_LARGE 125
76 #define IDB_HIST_SMALL 130
77 #define IDB_HIST_LARGE 131
80 /* Month calendar month menu popup */
81 #define IDD_MCMONTHMENU 300
96 #define IDM_TODAY 4163
97 #define IDM_GOTODAY 4164
99 /* Treeview Checkboxes */
101 #define IDT_CHECK 401
105 #define IDC_MOVEBUTTON 102
107 #define IDC_DIVIDER 106
108 #define IDC_DIVIDEROPEN 107
111 /* DragList resources */
112 #define IDI_DRAGARROW 501
114 /* HOTKEY internal strings */
115 #define HKY_NONE 2048
118 #define IDI_TT_INFO_SM 22
119 #define IDI_TT_WARN_SM 25
120 #define IDI_TT_ERROR_SM 28
124 COLORREF clrBtnHighlight
; /* COLOR_BTNHIGHLIGHT */
125 COLORREF clrBtnShadow
; /* COLOR_BTNSHADOW */
126 COLORREF clrBtnText
; /* COLOR_BTNTEXT */
127 COLORREF clrBtnFace
; /* COLOR_BTNFACE */
128 COLORREF clrHighlight
; /* COLOR_HIGHLIGHT */
129 COLORREF clrHighlightText
; /* COLOR_HIGHLIGHTTEXT */
130 COLORREF clrHotTrackingColor
; /* COLOR_HOTLIGHT */
131 COLORREF clr3dHilight
; /* COLOR_3DHILIGHT */
132 COLORREF clr3dShadow
; /* COLOR_3DSHADOW */
133 COLORREF clr3dDkShadow
; /* COLOR_3DDKSHADOW */
134 COLORREF clr3dFace
; /* COLOR_3DFACE */
135 COLORREF clrWindow
; /* COLOR_WINDOW */
136 COLORREF clrWindowText
; /* COLOR_WINDOWTEXT */
137 COLORREF clrGrayText
; /* COLOR_GREYTEXT */
138 COLORREF clrActiveCaption
; /* COLOR_ACTIVECAPTION */
139 COLORREF clrInfoBk
; /* COLOR_INFOBK */
140 COLORREF clrInfoText
; /* COLOR_INFOTEXT */
143 extern COMCTL32_SysColor comctl32_color DECLSPEC_HIDDEN
;
145 /* Internal function */
146 HWND
COMCTL32_CreateToolTip (HWND
) DECLSPEC_HIDDEN
;
147 VOID
COMCTL32_RefreshSysColors(void) DECLSPEC_HIDDEN
;
148 void COMCTL32_DrawInsertMark(HDC hDC
, const RECT
*lpRect
, COLORREF clrInsertMark
, BOOL bHorizontal
) DECLSPEC_HIDDEN
;
149 void COMCTL32_EnsureBitmapSize(HBITMAP
*pBitmap
, int cxMinWidth
, int cyMinHeight
, COLORREF crBackground
) DECLSPEC_HIDDEN
;
150 void COMCTL32_GetFontMetrics(HFONT hFont
, TEXTMETRICW
*ptm
) DECLSPEC_HIDDEN
;
151 BOOL
COMCTL32_IsReflectedMessage(UINT uMsg
) DECLSPEC_HIDDEN
;
152 INT
Str_GetPtrWtoA (LPCWSTR lpSrc
, LPSTR lpDest
, INT nMaxLen
) DECLSPEC_HIDDEN
;
153 INT
Str_GetPtrAtoW (LPCSTR lpSrc
, LPWSTR lpDest
, INT nMaxLen
) DECLSPEC_HIDDEN
;
154 BOOL
Str_SetPtrAtoW (LPWSTR
*lppDest
, LPCSTR lpSrc
) DECLSPEC_HIDDEN
;
155 BOOL
Str_SetPtrWtoA (LPSTR
*lppDest
, LPCWSTR lpSrc
) DECLSPEC_HIDDEN
;
157 #define COMCTL32_VERSION_MINOR 81
159 /* Our internal stack structure of the window procedures to subclass */
160 typedef struct _SUBCLASSPROCS
{
161 SUBCLASSPROC subproc
;
164 struct _SUBCLASSPROCS
*next
;
165 } SUBCLASSPROCS
, *LPSUBCLASSPROCS
;
169 SUBCLASSPROCS
*SubclassProcs
;
170 SUBCLASSPROCS
*stackpos
;
173 } SUBCLASS_INFO
, *LPSUBCLASS_INFO
;
175 /* undocumented functions */
177 LPVOID WINAPI
Alloc (DWORD
) __WINE_ALLOC_SIZE(1);
178 LPVOID WINAPI
ReAlloc (LPVOID
, DWORD
) __WINE_ALLOC_SIZE(2);
179 BOOL WINAPI
Free (LPVOID
);
180 DWORD WINAPI
GetSize (LPVOID
);
182 INT WINAPI
Str_GetPtrA (LPCSTR
, LPSTR
, INT
);
183 INT WINAPI
Str_GetPtrW (LPCWSTR
, LPWSTR
, INT
);
185 LRESULT WINAPI
SetPathWordBreakProc(HWND hwnd
, BOOL bSet
);
186 BOOL WINAPI
MirrorIcon(HICON
*phicon1
, HICON
*phicon2
);
188 extern void ANIMATE_Register(void) DECLSPEC_HIDDEN
;
189 extern void ANIMATE_Unregister(void) DECLSPEC_HIDDEN
;
190 extern void COMBOEX_Register(void) DECLSPEC_HIDDEN
;
191 extern void COMBOEX_Unregister(void) DECLSPEC_HIDDEN
;
192 extern void DATETIME_Register(void) DECLSPEC_HIDDEN
;
193 extern void DATETIME_Unregister(void) DECLSPEC_HIDDEN
;
194 extern void FLATSB_Register(void) DECLSPEC_HIDDEN
;
195 extern void FLATSB_Unregister(void) DECLSPEC_HIDDEN
;
196 extern void HEADER_Register(void) DECLSPEC_HIDDEN
;
197 extern void HEADER_Unregister(void) DECLSPEC_HIDDEN
;
198 extern void HOTKEY_Register(void) DECLSPEC_HIDDEN
;
199 extern void HOTKEY_Unregister(void) DECLSPEC_HIDDEN
;
200 extern void IPADDRESS_Register(void) DECLSPEC_HIDDEN
;
201 extern void IPADDRESS_Unregister(void) DECLSPEC_HIDDEN
;
202 extern void LISTVIEW_Register(void) DECLSPEC_HIDDEN
;
203 extern void LISTVIEW_Unregister(void) DECLSPEC_HIDDEN
;
204 extern void MONTHCAL_Register(void) DECLSPEC_HIDDEN
;
205 extern void MONTHCAL_Unregister(void) DECLSPEC_HIDDEN
;
206 extern void NATIVEFONT_Register(void) DECLSPEC_HIDDEN
;
207 extern void NATIVEFONT_Unregister(void) DECLSPEC_HIDDEN
;
208 extern void PAGER_Register(void) DECLSPEC_HIDDEN
;
209 extern void PAGER_Unregister(void) DECLSPEC_HIDDEN
;
210 extern void PROGRESS_Register(void) DECLSPEC_HIDDEN
;
211 extern void PROGRESS_Unregister(void) DECLSPEC_HIDDEN
;
212 extern void REBAR_Register(void) DECLSPEC_HIDDEN
;
213 extern void REBAR_Unregister(void) DECLSPEC_HIDDEN
;
214 extern void STATUS_Register(void) DECLSPEC_HIDDEN
;
215 extern void STATUS_Unregister(void) DECLSPEC_HIDDEN
;
216 extern void SYSLINK_Register(void) DECLSPEC_HIDDEN
;
217 extern void SYSLINK_Unregister(void) DECLSPEC_HIDDEN
;
218 extern void TAB_Register(void) DECLSPEC_HIDDEN
;
219 extern void TAB_Unregister(void) DECLSPEC_HIDDEN
;
220 extern void TOOLBAR_Register(void) DECLSPEC_HIDDEN
;
221 extern void TOOLBAR_Unregister(void) DECLSPEC_HIDDEN
;
222 extern void TOOLTIPS_Register(void) DECLSPEC_HIDDEN
;
223 extern void TOOLTIPS_Unregister(void) DECLSPEC_HIDDEN
;
224 extern void TRACKBAR_Register(void) DECLSPEC_HIDDEN
;
225 extern void TRACKBAR_Unregister(void) DECLSPEC_HIDDEN
;
226 extern void TREEVIEW_Register(void) DECLSPEC_HIDDEN
;
227 extern void TREEVIEW_Unregister(void) DECLSPEC_HIDDEN
;
228 extern void UPDOWN_Register(void) DECLSPEC_HIDDEN
;
229 extern void UPDOWN_Unregister(void) DECLSPEC_HIDDEN
;
232 int MONTHCAL_MonthLength(int month
, int year
) DECLSPEC_HIDDEN
;
233 int MONTHCAL_CalculateDayOfWeek(SYSTEMTIME
*date
, BOOL inplace
) DECLSPEC_HIDDEN
;
234 LONG
MONTHCAL_CompareSystemTime(const SYSTEMTIME
*first
, const SYSTEMTIME
*second
) DECLSPEC_HIDDEN
;
236 extern void THEMING_Initialize(void) DECLSPEC_HIDDEN
;
237 extern void THEMING_Uninitialize(void) DECLSPEC_HIDDEN
;
238 extern LRESULT
THEMING_CallOriginalClass(HWND
, UINT
, WPARAM
, LPARAM
) DECLSPEC_HIDDEN
;
239 extern void THEMING_SetSubclassData(HWND
, ULONG_PTR
) DECLSPEC_HIDDEN
;
241 #endif /* __WINE_COMCTL32_H */