Correct errors with move to kernel time functions.
[wine/multimedia.git] / dlls / comctl32 / comctl32.h
blob2c4aa65569ca48113da4a2c8d2c382c384930156
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
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;
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
52 #define IDS_CLOSE 4160
54 /* Toolbar customization dialog */
55 #define IDD_TBCUSTOMIZE 200
57 #define IDC_AVAILBTN_LBOX 201
58 #define IDC_RESET_BTN 202
59 #define IDC_TOOLBARBTN_LBOX 203
60 #define IDC_REMOVE_BTN 204
61 #define IDC_HELP_BTN 205
62 #define IDC_MOVEUP_BTN 206
63 #define IDC_MOVEDN_BTN 207
65 #define IDS_SEPARATOR 1024
67 /* Toolbar imagelist bitmaps */
68 #define IDB_STD_SMALL 120
69 #define IDB_STD_LARGE 121
70 #define IDB_VIEW_SMALL 124
71 #define IDB_VIEW_LARGE 125
72 #define IDB_HIST_SMALL 130
73 #define IDB_HIST_LARGE 131
76 /* Month calendar month menu popup */
77 #define IDD_MCMONTHMENU 300
79 #define IDM_JAN 301
80 #define IDM_FEB 302
81 #define IDM_MAR 303
82 #define IDM_APR 304
83 #define IDM_MAY 305
84 #define IDM_JUN 306
85 #define IDM_JUL 307
86 #define IDM_AUG 308
87 #define IDM_SEP 309
88 #define IDM_OCT 310
89 #define IDM_NOV 311
90 #define IDM_DEC 312
92 #define IDM_TODAY 4163
93 #define IDM_GOTODAY 4164
95 /* Treeview Checkboxes */
97 #define IDT_CHECK 401
100 /* Header cursors */
101 #define IDC_DIVIDER 106
102 #define IDC_DIVIDEROPEN 107
105 /* DragList resources */
106 #define IDI_DRAGARROW 501
107 #define IDC_COPY 502
109 #define IDC_MOVEBUTTON 1
111 /* HOTKEY internal strings */
112 #define HKY_NONE 2048
114 typedef struct
116 COLORREF clrBtnHighlight; /* COLOR_BTNHIGHLIGHT */
117 COLORREF clrBtnShadow; /* COLOR_BTNSHADOW */
118 COLORREF clrBtnText; /* COLOR_BTNTEXT */
119 COLORREF clrBtnFace; /* COLOR_BTNFACE */
120 COLORREF clrHighlight; /* COLOR_HIGHLIGHT */
121 COLORREF clrHighlightText; /* COLOR_HIGHLIGHTTEXT */
122 COLORREF clr3dHilight; /* COLOR_3DHILIGHT */
123 COLORREF clr3dShadow; /* COLOR_3DSHADOW */
124 COLORREF clr3dDkShadow; /* COLOR_3DDKSHADOW */
125 COLORREF clr3dFace; /* COLOR_3DFACE */
126 COLORREF clrWindow; /* COLOR_WINDOW */
127 COLORREF clrWindowText; /* COLOR_WINDOWTEXT */
128 COLORREF clrGrayText; /* COLOR_GREYTEXT */
129 COLORREF clrActiveCaption; /* COLOR_ACTIVECAPTION */
130 COLORREF clrInfoBk; /* COLOR_INFOBK */
131 COLORREF clrInfoText; /* COLOR_INFOTEXT */
132 } COMCTL32_SysColor;
134 extern COMCTL32_SysColor comctl32_color;
136 /* Internal function */
137 HWND COMCTL32_CreateToolTip (HWND);
138 VOID COMCTL32_RefreshSysColors(void);
139 INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
140 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
142 #define COMCTL32_VERSION_MINOR 80
143 #define WINE_FILEVERSION 5, COMCTL32_VERSION_MINOR, 0, 0
144 #define WINE_FILEVERSIONSTR "5.80"
146 /* Our internal stack structure of the window procedures to subclass */
147 typedef struct
149 struct {
150 SUBCLASSPROC subproc;
151 UINT_PTR id;
152 DWORD_PTR ref;
153 } SubclassProcs[31];
154 int stackpos;
155 int stacknum;
156 int stacknew;
157 WNDPROC origproc;
158 } SUBCLASS_INFO, *LPSUBCLASS_INFO;
160 /* undocumented functions */
162 LPVOID WINAPI Alloc (DWORD);
163 LPVOID WINAPI ReAlloc (LPVOID, DWORD);
164 BOOL WINAPI Free (LPVOID);
165 DWORD WINAPI GetSize (LPVOID);
167 INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
168 INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
170 INT WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
171 BOOL WINAPI DPA_Grow (const HDPA, INT);
173 #define DPAM_NOSORT 0x0001
174 #define DPAM_INSERT 0x0004
175 #define DPAM_DELETE 0x0008
177 typedef PVOID (CALLBACK *PFNDPAMERGE)(DWORD,PVOID,PVOID,LPARAM);
178 BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM);
180 #define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa))
182 #endif /* __WINE_COMCTL32_H */