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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #ifndef __WINE_COMCTL32_H
25 #define __WINE_COMCTL32_H
38 extern HMODULE COMCTL32_hModule;
39 extern HBRUSH COMCTL32_hPattern55AABrush;
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
77 /* Month calendar month menu popup */
78 #define IDD_MCMONTHMENU 300
93 #define IDM_TODAY 4163
94 #define IDM_GOTODAY 4164
96 /* Treeview Checkboxes */
102 #define IDC_DIVIDER 106
103 #define IDC_DIVIDEROPEN 107
106 /* DragList resources */
107 #define IDI_DRAGARROW 501
110 #define IDC_MOVEBUTTON 1
112 /* HOTKEY internal strings */
113 #define HKY_NONE 2048
117 COLORREF clrBtnHighlight; /* COLOR_BTNHIGHLIGHT */
118 COLORREF clrBtnShadow; /* COLOR_BTNSHADOW */
119 COLORREF clrBtnText; /* COLOR_BTNTEXT */
120 COLORREF clrBtnFace; /* COLOR_BTNFACE */
121 COLORREF clrHighlight; /* COLOR_HIGHLIGHT */
122 COLORREF clrHighlightText; /* COLOR_HIGHLIGHTTEXT */
123 COLORREF clr3dHilight; /* COLOR_3DHILIGHT */
124 COLORREF clr3dShadow; /* COLOR_3DSHADOW */
125 COLORREF clr3dDkShadow; /* COLOR_3DDKSHADOW */
126 COLORREF clr3dFace; /* COLOR_3DFACE */
127 COLORREF clrWindow; /* COLOR_WINDOW */
128 COLORREF clrWindowText; /* COLOR_WINDOWTEXT */
129 COLORREF clrGrayText; /* COLOR_GREYTEXT */
130 COLORREF clrActiveCaption; /* COLOR_ACTIVECAPTION */
131 COLORREF clrInfoBk; /* COLOR_INFOBK */
132 COLORREF clrInfoText; /* COLOR_INFOTEXT */
135 extern COMCTL32_SysColor comctl32_color;
137 /* Internal function */
138 HWND COMCTL32_CreateToolTip (HWND);
139 VOID COMCTL32_RefreshSysColors(void);
140 INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
141 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
143 #define COMCTL32_VERSION_MINOR 80
144 #define WINE_FILEVERSION 5, COMCTL32_VERSION_MINOR, 0, 0
145 #define WINE_FILEVERSIONSTR "5.80"
147 /* Our internal stack structure of the window procedures to subclass */
151 SUBCLASSPROC subproc;
157 int wndprocrecursion;
159 } SUBCLASS_INFO, *LPSUBCLASS_INFO;
161 /* undocumented functions */
163 LPVOID WINAPI Alloc (DWORD);
164 LPVOID WINAPI ReAlloc (LPVOID, DWORD);
165 BOOL WINAPI Free (LPVOID);
166 DWORD WINAPI GetSize (LPVOID);
168 INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
169 INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
171 INT WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
172 BOOL WINAPI DPA_Grow (const HDPA, INT);
174 #define DPAM_NOSORT 0x0001
175 #define DPAM_INSERT 0x0004
176 #define DPAM_DELETE 0x0008
178 typedef PVOID (CALLBACK *PFNDPAMERGE)(DWORD,PVOID,PVOID,LPARAM);
179 BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM);
181 #define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa))
183 #endif /* __WINE_COMCTL32_H */