Release 20030408.
[wine/gsoc-2012-control.git] / dlls / comctl32 / comctl32.h
blob78b4a8fdf3a5948ac69eab09361f0d04d5ce8a00
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 #include "commctrl.h"
29 extern HMODULE COMCTL32_hModule;
30 extern HBRUSH COMCTL32_hPattern55AABrush;
32 /* Property sheet / Wizard */
33 #define IDD_PROPSHEET 1006
34 #define IDD_WIZARD 1020
36 #define IDC_TABCONTROL 12320
37 #define IDC_APPLY_BUTTON 12321
38 #define IDC_BACK_BUTTON 12323
39 #define IDC_NEXT_BUTTON 12324
40 #define IDC_FINISH_BUTTON 12325
41 #define IDC_SUNKEN_LINE 12326
43 #define IDS_CLOSE 4160
45 /* Toolbar customization dialog */
46 #define IDD_TBCUSTOMIZE 200
48 #define IDC_AVAILBTN_LBOX 201
49 #define IDC_RESET_BTN 202
50 #define IDC_TOOLBARBTN_LBOX 203
51 #define IDC_REMOVE_BTN 204
52 #define IDC_HELP_BTN 205
53 #define IDC_MOVEUP_BTN 206
54 #define IDC_MOVEDN_BTN 207
56 #define IDS_SEPARATOR 1024
58 /* Toolbar imagelist bitmaps */
59 #define IDB_STD_SMALL 120
60 #define IDB_STD_LARGE 121
61 #define IDB_VIEW_SMALL 124
62 #define IDB_VIEW_LARGE 125
63 #define IDB_HIST_SMALL 130
64 #define IDB_HIST_LARGE 131
67 /* Month calendar month menu popup */
68 #define IDD_MCMONTHMENU 300
70 #define IDM_JAN 301
71 #define IDM_FEB 302
72 #define IDM_MAR 303
73 #define IDM_APR 304
74 #define IDM_MAY 305
75 #define IDM_JUN 306
76 #define IDM_JUL 307
77 #define IDM_AUG 308
78 #define IDM_SEP 309
79 #define IDM_OCT 310
80 #define IDM_NOV 311
81 #define IDM_DEC 312
83 #define IDM_TODAY 4163
84 #define IDM_GOTODAY 4164
86 /* Treeview Checkboxes */
88 #define IDT_CHECK 401
91 /* Header cursors */
92 #define IDC_DIVIDER 106
93 #define IDC_DIVIDEROPEN 107
96 /* DragList icon */
97 #define IDI_DRAGARROW 150
100 /* HOTKEY internal strings */
101 #define HKY_NONE 2048
103 typedef struct
105 COLORREF clrBtnHighlight; /* COLOR_BTNHIGHLIGHT */
106 COLORREF clrBtnShadow; /* COLOR_BTNSHADOW */
107 COLORREF clrBtnText; /* COLOR_BTNTEXT */
108 COLORREF clrBtnFace; /* COLOR_BTNFACE */
109 COLORREF clrHighlight; /* COLOR_HIGHLIGHT */
110 COLORREF clrHighlightText; /* COLOR_HIGHLIGHTTEXT */
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;
125 /* Internal function */
126 HWND COMCTL32_CreateToolTip (HWND);
127 VOID COMCTL32_RefreshSysColors(void);
128 INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
129 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
131 #define COMCTL32_VERSION_MINOR 0
132 #define WINE_FILEVERSION 5, COMCTL32_VERSION_MINOR, 0, 0
133 #define WINE_FILEVERSIONSTR "5.00"
135 /* Our internal stack structure of the window procedures to subclass */
136 typedef struct
138 struct {
139 SUBCLASSPROC subproc;
140 UINT_PTR id;
141 DWORD_PTR ref;
142 } SubclassProcs[31];
143 int stackpos;
144 int stacknum;
145 int stacknew;
146 WNDPROC origproc;
147 } SUBCLASS_INFO, *LPSUBCLASS_INFO;
149 #endif /* __WINE_COMCTL32_H */