~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/comctl32/comctl32.h

Version: ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  1 /******************************************************************************
  2  *
  3  * Common definitions (resource ids and global variables)
  4  *
  5  * Copyright 1999 Thuy Nguyen
  6  * Copyright 1999 Eric Kohl
  7  * Copyright 2002 Dimitrie O. Paun
  8  *
  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.
 13  *
 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.
 18  *
 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
 22  */
 23 
 24 #ifndef __WINE_COMCTL32_H
 25 #define __WINE_COMCTL32_H
 26 
 27 #ifndef RC_INVOKED
 28 #include <stdarg.h>
 29 #endif
 30 
 31 #include "windef.h"
 32 #include "winbase.h"
 33 #include "wingdi.h"
 34 #include "winuser.h"
 35 #include "winnls.h"
 36 #include "commctrl.h"
 37 
 38 extern HMODULE COMCTL32_hModule;
 39 extern HBRUSH  COMCTL32_hPattern55AABrush;
 40 
 41 /* has a value of: 0, CCS_TOP, CCS_NOMOVEY, CCS_BOTTOM */
 42 #define CCS_LAYOUT_MASK 0x3
 43 
 44 /* Property sheet / Wizard */
 45 #define IDD_PROPSHEET 1006
 46 #define IDD_WIZARD    1020
 47 
 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
 55 
 56 #define IDS_CLOSE         4160
 57 
 58 /* Toolbar customization dialog */
 59 #define IDD_TBCUSTOMIZE     200
 60 
 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
 68 
 69 #define IDS_SEPARATOR      1024
 70 
 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
 78 
 79 
 80 /* Month calendar month menu popup */
 81 #define IDD_MCMONTHMENU     300
 82 
 83 #define IDM_JAN                         301
 84 #define IDM_FEB                         302
 85 #define IDM_MAR                         303
 86 #define IDM_APR                         304
 87 #define IDM_MAY                         305
 88 #define IDM_JUN                         306
 89 #define IDM_JUL                         307
 90 #define IDM_AUG                         308
 91 #define IDM_SEP                         309
 92 #define IDM_OCT                         310
 93 #define IDM_NOV                         311
 94 #define IDM_DEC                         312
 95 
 96 #define IDM_TODAY                      4163
 97 #define IDM_GOTODAY                    4164
 98 
 99 /* Treeview Checkboxes */
100 
101 #define IDT_CHECK        401
102 
103 
104 /* Header cursors */
105 #define IDC_DIVIDER                     106
106 #define IDC_DIVIDEROPEN                 107
107 
108 
109 /* DragList resources */
110 #define IDI_DRAGARROW                   501
111 #define IDC_COPY                        502
112 
113 #define IDC_MOVEBUTTON                    1
114 
115 /* HOTKEY internal strings */
116 #define HKY_NONE                        2048
117 
118 /* Tooltip icons */
119 #define IDI_TT_INFO_SM                   22
120 #define IDI_TT_WARN_SM                   25
121 #define IDI_TT_ERROR_SM                  28
122 
123 typedef struct
124 {
125     COLORREF clrBtnHighlight;       /* COLOR_BTNHIGHLIGHT                  */
126     COLORREF clrBtnShadow;          /* COLOR_BTNSHADOW                     */
127     COLORREF clrBtnText;            /* COLOR_BTNTEXT                       */
128     COLORREF clrBtnFace;            /* COLOR_BTNFACE                       */
129     COLORREF clrHighlight;          /* COLOR_HIGHLIGHT                     */
130     COLORREF clrHighlightText;      /* COLOR_HIGHLIGHTTEXT                 */
131     COLORREF clrHotTrackingColor;   /* COLOR_HOTLIGHT                      */
132     COLORREF clr3dHilight;          /* COLOR_3DHILIGHT                     */
133     COLORREF clr3dShadow;           /* COLOR_3DSHADOW                      */
134     COLORREF clr3dDkShadow;         /* COLOR_3DDKSHADOW                    */
135     COLORREF clr3dFace;             /* COLOR_3DFACE                        */
136     COLORREF clrWindow;             /* COLOR_WINDOW                        */
137     COLORREF clrWindowText;         /* COLOR_WINDOWTEXT                    */
138     COLORREF clrGrayText;           /* COLOR_GREYTEXT                      */
139     COLORREF clrActiveCaption;      /* COLOR_ACTIVECAPTION                 */
140     COLORREF clrInfoBk;             /* COLOR_INFOBK                        */
141     COLORREF clrInfoText;           /* COLOR_INFOTEXT                      */
142 } COMCTL32_SysColor;
143 
144 extern COMCTL32_SysColor  comctl32_color;
145 
146 /* Internal function */
147 HWND COMCTL32_CreateToolTip (HWND);
148 VOID COMCTL32_RefreshSysColors(void);
149 void COMCTL32_DrawInsertMark(HDC hDC, const RECT *lpRect, COLORREF clrInsertMark, BOOL bHorizontal);
150 void COMCTL32_EnsureBitmapSize(HBITMAP *pBitmap, int cxMinWidth, int cyMinHeight, COLORREF crBackground);
151 INT  Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
152 INT  Str_GetPtrAtoW (LPCSTR lpSrc, LPWSTR lpDest, INT nMaxLen);
153 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
154 BOOL Str_SetPtrWtoA (LPSTR *lppDest, LPCWSTR lpSrc);
155 
156 #define COMCTL32_VERSION_MINOR 81
157 
158 /* Our internal stack structure of the window procedures to subclass */
159 typedef struct _SUBCLASSPROCS {
160     SUBCLASSPROC subproc;
161     UINT_PTR id;
162     DWORD_PTR ref;
163     struct _SUBCLASSPROCS *next;
164 } SUBCLASSPROCS, *LPSUBCLASSPROCS;
165 
166 typedef struct
167 {
168    SUBCLASSPROCS *SubclassProcs;
169    SUBCLASSPROCS *stackpos;
170    WNDPROC origproc;
171    int running;
172 } SUBCLASS_INFO, *LPSUBCLASS_INFO;
173 
174 /* undocumented functions */
175 
176 LPVOID WINAPI Alloc (DWORD);
177 LPVOID WINAPI ReAlloc (LPVOID, DWORD);
178 BOOL   WINAPI Free (LPVOID);
179 DWORD  WINAPI GetSize (LPVOID);
180 
181 INT  WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
182 INT  WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
183 
184 INT  WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
185 BOOL WINAPI DPA_Grow (const HDPA, INT);
186 
187 #define DPAM_NOSORT             0x0001
188 #define DPAM_INSERT             0x0004
189 #define DPAM_DELETE             0x0008
190 
191 typedef PVOID (CALLBACK *PFNDPAMERGE)(DWORD,PVOID,PVOID,LPARAM);
192 BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM);
193 
194 #define DPA_GetPtrCount(hdpa)  (*(INT*)(hdpa))
195 
196 LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet);
197 BOOL WINAPI MirrorIcon(HICON *phicon1, HICON *phicon2);
198 
199 extern void ANIMATE_Register(void);
200 extern void ANIMATE_Unregister(void);
201 extern void COMBOEX_Register(void);
202 extern void COMBOEX_Unregister(void);
203 extern void DATETIME_Register(void);
204 extern void DATETIME_Unregister(void);
205 extern void FLATSB_Register(void);
206 extern void FLATSB_Unregister(void);
207 extern void HEADER_Register(void);
208 extern void HEADER_Unregister(void);
209 extern void HOTKEY_Register(void);
210 extern void HOTKEY_Unregister(void);
211 extern void IPADDRESS_Register(void);
212 extern void IPADDRESS_Unregister(void);
213 extern void LISTVIEW_Register(void);
214 extern void LISTVIEW_Unregister(void);
215 extern void MONTHCAL_Register(void);
216 extern void MONTHCAL_Unregister(void);
217 extern void NATIVEFONT_Register(void);
218 extern void NATIVEFONT_Unregister(void);
219 extern void PAGER_Register(void);
220 extern void PAGER_Unregister(void);
221 extern void PROGRESS_Register(void);
222 extern void PROGRESS_Unregister(void);
223 extern void REBAR_Register(void);
224 extern void REBAR_Unregister(void);
225 extern void STATUS_Register(void);
226 extern void STATUS_Unregister(void);
227 extern void SYSLINK_Register(void);
228 extern void SYSLINK_Unregister(void);
229 extern void TAB_Register(void);
230 extern void TAB_Unregister(void);
231 extern void TOOLBAR_Register(void);
232 extern void TOOLBAR_Unregister(void);
233 extern void TOOLTIPS_Register(void);
234 extern void TOOLTIPS_Unregister(void);
235 extern void TRACKBAR_Register(void);
236 extern void TRACKBAR_Unregister(void);
237 extern void TREEVIEW_Register(void);
238 extern void TREEVIEW_Unregister(void);
239 extern void UPDOWN_Register(void);
240 extern void UPDOWN_Unregister(void);
241 
242 
243 int MONTHCAL_MonthLength(int month, int year);
244 
245 static inline void MONTHCAL_CopyTime(const SYSTEMTIME *from, SYSTEMTIME *to)
246 {
247   to->wYear = from->wYear;
248   to->wMonth = from->wMonth;
249   to->wDayOfWeek = from->wDayOfWeek;
250   to->wDay = from->wDay;
251   to->wHour = from->wHour;
252   to->wMinute = from->wMinute;
253   to->wSecond = from->wSecond;
254   to->wMilliseconds = from->wMilliseconds;
255 }
256 
257 extern void THEMING_Initialize(void);
258 extern void THEMING_Uninitialize(void);
259 extern LRESULT THEMING_CallOriginalClass(HWND, UINT, WPARAM, LPARAM);
260 extern void THEMING_SetSubclassData(HWND, ULONG_PTR);
261 
262 #endif  /* __WINE_COMCTL32_H */
263 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.