wined3d: Get resource info from the texture in surface_load_renderbuffer().
[wine.git] / dlls / comctl32 / comctl32.h
blobb9b0574427b394c265e674d669de401298085469
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
27 #ifndef RC_INVOKED
28 #include <stdarg.h>
29 #endif
31 #include "windef.h"
32 #include "winbase.h"
33 #include "wingdi.h"
34 #include "winuser.h"
35 #include "winnls.h"
36 #include "commctrl.h"
38 extern HMODULE COMCTL32_hModule DECLSPEC_HIDDEN;
39 extern HBRUSH COMCTL32_hPattern55AABrush DECLSPEC_HIDDEN;
41 /* Property sheet / Wizard */
42 #define IDD_PROPSHEET 1006
43 #define IDD_WIZARD 1020
45 #define IDC_TABCONTROL 12320
46 #define IDC_APPLY_BUTTON 12321
47 #define IDC_BACK_BUTTON 12323
48 #define IDC_NEXT_BUTTON 12324
49 #define IDC_FINISH_BUTTON 12325
50 #define IDC_SUNKEN_LINE 12326
51 #define IDC_SUNKEN_LINEHEADER 12327
53 #define IDS_CLOSE 4160
55 /* Toolbar customization dialog */
56 #define IDD_TBCUSTOMIZE 200
58 #define IDC_AVAILBTN_LBOX 201
59 #define IDC_RESET_BTN 202
60 #define IDC_TOOLBARBTN_LBOX 203
61 #define IDC_REMOVE_BTN 204
62 #define IDC_HELP_BTN 205
63 #define IDC_MOVEUP_BTN 206
64 #define IDC_MOVEDN_BTN 207
66 #define IDS_SEPARATOR 1024
68 /* Toolbar imagelist bitmaps */
69 #define IDB_STD_SMALL 120
70 #define IDB_STD_LARGE 121
71 #define IDB_VIEW_SMALL 124
72 #define IDB_VIEW_LARGE 125
73 #define IDB_HIST_SMALL 130
74 #define IDB_HIST_LARGE 131
76 #define IDM_TODAY 4163
77 #define IDM_GOTODAY 4164
79 /* Treeview Checkboxes */
81 #define IDT_CHECK 401
84 /* Cursors */
85 #define IDC_MOVEBUTTON 102
86 #define IDC_COPY 104
87 #define IDC_DIVIDER 106
88 #define IDC_DIVIDEROPEN 107
91 /* DragList resources */
92 #define IDI_DRAGARROW 501
94 /* HOTKEY internal strings */
95 #define HKY_NONE 2048
97 /* Tooltip icons */
98 #define IDI_TT_INFO_SM 22
99 #define IDI_TT_WARN_SM 25
100 #define IDI_TT_ERROR_SM 28
102 typedef struct
104 COLORREF clrBtnHighlight; /* COLOR_BTNHIGHLIGHT */
105 COLORREF clrBtnShadow; /* COLOR_BTNSHADOW */
106 COLORREF clrBtnText; /* COLOR_BTNTEXT */
107 COLORREF clrBtnFace; /* COLOR_BTNFACE */
108 COLORREF clrHighlight; /* COLOR_HIGHLIGHT */
109 COLORREF clrHighlightText; /* COLOR_HIGHLIGHTTEXT */
110 COLORREF clrHotTrackingColor; /* COLOR_HOTLIGHT */
111 COLORREF clr3dHilight; /* COLOR_3DHILIGHT */
112 COLORREF clr3dShadow; /* COLOR_3DSHADOW */
113 COLORREF clr3dDkShadow; /* COLOR_3DDKSHADOW */
114 COLORREF clr3dFace; /* COLOR_3DFACE */
115 COLORREF clrWindow; /* COLOR_WINDOW */
116 COLORREF clrWindowText; /* COLOR_WINDOWTEXT */
117 COLORREF clrGrayText; /* COLOR_GREYTEXT */
118 COLORREF clrActiveCaption; /* COLOR_ACTIVECAPTION */
119 COLORREF clrInfoBk; /* COLOR_INFOBK */
120 COLORREF clrInfoText; /* COLOR_INFOTEXT */
121 } COMCTL32_SysColor;
123 extern COMCTL32_SysColor comctl32_color DECLSPEC_HIDDEN;
125 /* Internal function */
126 HWND COMCTL32_CreateToolTip (HWND) DECLSPEC_HIDDEN;
127 VOID COMCTL32_RefreshSysColors(void) DECLSPEC_HIDDEN;
128 void COMCTL32_DrawInsertMark(HDC hDC, const RECT *lpRect, COLORREF clrInsertMark, BOOL bHorizontal) DECLSPEC_HIDDEN;
129 void COMCTL32_EnsureBitmapSize(HBITMAP *pBitmap, int cxMinWidth, int cyMinHeight, COLORREF crBackground) DECLSPEC_HIDDEN;
130 void COMCTL32_GetFontMetrics(HFONT hFont, TEXTMETRICW *ptm) DECLSPEC_HIDDEN;
131 BOOL COMCTL32_IsReflectedMessage(UINT uMsg) DECLSPEC_HIDDEN;
132 INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN;
133 INT Str_GetPtrAtoW (LPCSTR lpSrc, LPWSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN;
134 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc) DECLSPEC_HIDDEN;
135 BOOL Str_SetPtrWtoA (LPSTR *lppDest, LPCWSTR lpSrc) DECLSPEC_HIDDEN;
137 #define COMCTL32_VERSION_MINOR 81
139 /* Our internal stack structure of the window procedures to subclass */
140 typedef struct _SUBCLASSPROCS {
141 SUBCLASSPROC subproc;
142 UINT_PTR id;
143 DWORD_PTR ref;
144 struct _SUBCLASSPROCS *next;
145 } SUBCLASSPROCS, *LPSUBCLASSPROCS;
147 typedef struct
149 SUBCLASSPROCS *SubclassProcs;
150 SUBCLASSPROCS *stackpos;
151 WNDPROC origproc;
152 int running;
153 } SUBCLASS_INFO, *LPSUBCLASS_INFO;
155 /* undocumented functions */
157 LPVOID WINAPI Alloc (DWORD) __WINE_ALLOC_SIZE(1);
158 LPVOID WINAPI ReAlloc (LPVOID, DWORD) __WINE_ALLOC_SIZE(2);
159 BOOL WINAPI Free (LPVOID);
160 DWORD WINAPI GetSize (LPVOID);
162 INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
163 INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
165 LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet);
166 BOOL WINAPI MirrorIcon(HICON *phicon1, HICON *phicon2);
168 extern void ANIMATE_Register(void) DECLSPEC_HIDDEN;
169 extern void ANIMATE_Unregister(void) DECLSPEC_HIDDEN;
170 extern void COMBOEX_Register(void) DECLSPEC_HIDDEN;
171 extern void COMBOEX_Unregister(void) DECLSPEC_HIDDEN;
172 extern void DATETIME_Register(void) DECLSPEC_HIDDEN;
173 extern void DATETIME_Unregister(void) DECLSPEC_HIDDEN;
174 extern void FLATSB_Register(void) DECLSPEC_HIDDEN;
175 extern void FLATSB_Unregister(void) DECLSPEC_HIDDEN;
176 extern void HEADER_Register(void) DECLSPEC_HIDDEN;
177 extern void HEADER_Unregister(void) DECLSPEC_HIDDEN;
178 extern void HOTKEY_Register(void) DECLSPEC_HIDDEN;
179 extern void HOTKEY_Unregister(void) DECLSPEC_HIDDEN;
180 extern void IPADDRESS_Register(void) DECLSPEC_HIDDEN;
181 extern void IPADDRESS_Unregister(void) DECLSPEC_HIDDEN;
182 extern void LISTVIEW_Register(void) DECLSPEC_HIDDEN;
183 extern void LISTVIEW_Unregister(void) DECLSPEC_HIDDEN;
184 extern void MONTHCAL_Register(void) DECLSPEC_HIDDEN;
185 extern void MONTHCAL_Unregister(void) DECLSPEC_HIDDEN;
186 extern void NATIVEFONT_Register(void) DECLSPEC_HIDDEN;
187 extern void NATIVEFONT_Unregister(void) DECLSPEC_HIDDEN;
188 extern void PAGER_Register(void) DECLSPEC_HIDDEN;
189 extern void PAGER_Unregister(void) DECLSPEC_HIDDEN;
190 extern void PROGRESS_Register(void) DECLSPEC_HIDDEN;
191 extern void PROGRESS_Unregister(void) DECLSPEC_HIDDEN;
192 extern void REBAR_Register(void) DECLSPEC_HIDDEN;
193 extern void REBAR_Unregister(void) DECLSPEC_HIDDEN;
194 extern void STATUS_Register(void) DECLSPEC_HIDDEN;
195 extern void STATUS_Unregister(void) DECLSPEC_HIDDEN;
196 extern void SYSLINK_Register(void) DECLSPEC_HIDDEN;
197 extern void SYSLINK_Unregister(void) DECLSPEC_HIDDEN;
198 extern void TAB_Register(void) DECLSPEC_HIDDEN;
199 extern void TAB_Unregister(void) DECLSPEC_HIDDEN;
200 extern void TOOLBAR_Register(void) DECLSPEC_HIDDEN;
201 extern void TOOLBAR_Unregister(void) DECLSPEC_HIDDEN;
202 extern void TOOLTIPS_Register(void) DECLSPEC_HIDDEN;
203 extern void TOOLTIPS_Unregister(void) DECLSPEC_HIDDEN;
204 extern void TRACKBAR_Register(void) DECLSPEC_HIDDEN;
205 extern void TRACKBAR_Unregister(void) DECLSPEC_HIDDEN;
206 extern void TREEVIEW_Register(void) DECLSPEC_HIDDEN;
207 extern void TREEVIEW_Unregister(void) DECLSPEC_HIDDEN;
208 extern void UPDOWN_Register(void) DECLSPEC_HIDDEN;
209 extern void UPDOWN_Unregister(void) DECLSPEC_HIDDEN;
212 int MONTHCAL_MonthLength(int month, int year) DECLSPEC_HIDDEN;
213 int MONTHCAL_CalculateDayOfWeek(SYSTEMTIME *date, BOOL inplace) DECLSPEC_HIDDEN;
214 LONG MONTHCAL_CompareSystemTime(const SYSTEMTIME *first, const SYSTEMTIME *second) DECLSPEC_HIDDEN;
216 extern void THEMING_Initialize(void) DECLSPEC_HIDDEN;
217 extern void THEMING_Uninitialize(void) DECLSPEC_HIDDEN;
218 extern LRESULT THEMING_CallOriginalClass(HWND, UINT, WPARAM, LPARAM) DECLSPEC_HIDDEN;
219 extern void THEMING_SetSubclassData(HWND, ULONG_PTR) DECLSPEC_HIDDEN;
221 #endif /* __WINE_COMCTL32_H */