Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencomctl32.h
Go to the documentation of this file.
00001 /****************************************************************************** 00002 * 00003 * Common definitions (resource ids and global variables) 00004 * 00005 * Copyright 1999 Thuy Nguyen 00006 * Copyright 1999 Eric Kohl 00007 * Copyright 2002 Dimitrie O. Paun 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * This library is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00022 */ 00023 00024 #ifndef __WINE_COMCTL32_H 00025 #define __WINE_COMCTL32_H 00026 00027 #ifndef RC_INVOKED 00028 #include <stdarg.h> 00029 #endif 00030 00031 #include "windef.h" 00032 #include "winbase.h" 00033 #include "wingdi.h" 00034 #include "winuser.h" 00035 #include "winnls.h" 00036 #include "commctrl.h" 00037 00038 extern HMODULE COMCTL32_hModule DECLSPEC_HIDDEN; 00039 extern HBRUSH COMCTL32_hPattern55AABrush DECLSPEC_HIDDEN; 00040 00041 /* has a value of: 0, CCS_TOP, CCS_NOMOVEY, CCS_BOTTOM */ 00042 #define CCS_LAYOUT_MASK 0x3 00043 00044 /* Property sheet / Wizard */ 00045 #define IDD_PROPSHEET 1006 00046 #define IDD_WIZARD 1020 00047 00048 #define IDC_TABCONTROL 12320 00049 #define IDC_APPLY_BUTTON 12321 00050 #define IDC_BACK_BUTTON 12323 00051 #define IDC_NEXT_BUTTON 12324 00052 #define IDC_FINISH_BUTTON 12325 00053 #define IDC_SUNKEN_LINE 12326 00054 #define IDC_SUNKEN_LINEHEADER 12327 00055 00056 #define IDS_CLOSE 4160 00057 00058 /* Toolbar customization dialog */ 00059 #define IDD_TBCUSTOMIZE 200 00060 00061 #define IDC_AVAILBTN_LBOX 201 00062 #define IDC_RESET_BTN 202 00063 #define IDC_TOOLBARBTN_LBOX 203 00064 #define IDC_REMOVE_BTN 204 00065 #define IDC_HELP_BTN 205 00066 #define IDC_MOVEUP_BTN 206 00067 #define IDC_MOVEDN_BTN 207 00068 00069 #define IDS_SEPARATOR 1024 00070 00071 /* Toolbar imagelist bitmaps */ 00072 #define IDB_STD_SMALL 120 00073 #define IDB_STD_LARGE 121 00074 #define IDB_VIEW_SMALL 124 00075 #define IDB_VIEW_LARGE 125 00076 #define IDB_HIST_SMALL 130 00077 #define IDB_HIST_LARGE 131 00078 00079 00080 /* Month calendar month menu popup */ 00081 #define IDD_MCMONTHMENU 300 00082 00083 #define IDM_JAN 301 00084 #define IDM_FEB 302 00085 #define IDM_MAR 303 00086 #define IDM_APR 304 00087 #define IDM_MAY 305 00088 #define IDM_JUN 306 00089 #define IDM_JUL 307 00090 #define IDM_AUG 308 00091 #define IDM_SEP 309 00092 #define IDM_OCT 310 00093 #define IDM_NOV 311 00094 #define IDM_DEC 312 00095 00096 #define IDM_TODAY 4163 00097 #define IDM_GOTODAY 4164 00098 00099 /* Treeview Checkboxes */ 00100 00101 #define IDT_CHECK 401 00102 00103 00104 /* Cursors */ 00105 #define IDC_MOVEBUTTON 102 00106 #define IDC_COPY 104 00107 #define IDC_DIVIDER 106 00108 #define IDC_DIVIDEROPEN 107 00109 00110 00111 /* DragList resources */ 00112 #define IDI_DRAGARROW 501 00113 00114 /* HOTKEY internal strings */ 00115 #define HKY_NONE 2048 00116 00117 /* Tooltip icons */ 00118 #define IDI_TT_INFO_SM 22 00119 #define IDI_TT_WARN_SM 25 00120 #define IDI_TT_ERROR_SM 28 00121 00122 typedef struct 00123 { 00124 COLORREF clrBtnHighlight; /* COLOR_BTNHIGHLIGHT */ 00125 COLORREF clrBtnShadow; /* COLOR_BTNSHADOW */ 00126 COLORREF clrBtnText; /* COLOR_BTNTEXT */ 00127 COLORREF clrBtnFace; /* COLOR_BTNFACE */ 00128 COLORREF clrHighlight; /* COLOR_HIGHLIGHT */ 00129 COLORREF clrHighlightText; /* COLOR_HIGHLIGHTTEXT */ 00130 COLORREF clrHotTrackingColor; /* COLOR_HOTLIGHT */ 00131 COLORREF clr3dHilight; /* COLOR_3DHILIGHT */ 00132 COLORREF clr3dShadow; /* COLOR_3DSHADOW */ 00133 COLORREF clr3dDkShadow; /* COLOR_3DDKSHADOW */ 00134 COLORREF clr3dFace; /* COLOR_3DFACE */ 00135 COLORREF clrWindow; /* COLOR_WINDOW */ 00136 COLORREF clrWindowText; /* COLOR_WINDOWTEXT */ 00137 COLORREF clrGrayText; /* COLOR_GREYTEXT */ 00138 COLORREF clrActiveCaption; /* COLOR_ACTIVECAPTION */ 00139 COLORREF clrInfoBk; /* COLOR_INFOBK */ 00140 COLORREF clrInfoText; /* COLOR_INFOTEXT */ 00141 } COMCTL32_SysColor; 00142 00143 extern COMCTL32_SysColor comctl32_color DECLSPEC_HIDDEN; 00144 00145 /* Internal function */ 00146 HWND COMCTL32_CreateToolTip (HWND) DECLSPEC_HIDDEN; 00147 VOID COMCTL32_RefreshSysColors(void) DECLSPEC_HIDDEN; 00148 void COMCTL32_DrawInsertMark(HDC hDC, const RECT *lpRect, COLORREF clrInsertMark, BOOL bHorizontal) DECLSPEC_HIDDEN; 00149 void COMCTL32_EnsureBitmapSize(HBITMAP *pBitmap, int cxMinWidth, int cyMinHeight, COLORREF crBackground) DECLSPEC_HIDDEN; 00150 void COMCTL32_GetFontMetrics(HFONT hFont, TEXTMETRICW *ptm) DECLSPEC_HIDDEN; 00151 BOOL COMCTL32_IsReflectedMessage(UINT uMsg) DECLSPEC_HIDDEN; 00152 INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN; 00153 INT Str_GetPtrAtoW (LPCSTR lpSrc, LPWSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN; 00154 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc) DECLSPEC_HIDDEN; 00155 BOOL Str_SetPtrWtoA (LPSTR *lppDest, LPCWSTR lpSrc) DECLSPEC_HIDDEN; 00156 00157 #define COMCTL32_VERSION_MINOR 81 00158 00159 /* Our internal stack structure of the window procedures to subclass */ 00160 typedef struct _SUBCLASSPROCS { 00161 SUBCLASSPROC subproc; 00162 UINT_PTR id; 00163 DWORD_PTR ref; 00164 struct _SUBCLASSPROCS *next; 00165 } SUBCLASSPROCS, *LPSUBCLASSPROCS; 00166 00167 typedef struct 00168 { 00169 SUBCLASSPROCS *SubclassProcs; 00170 SUBCLASSPROCS *stackpos; 00171 WNDPROC origproc; 00172 int running; 00173 } SUBCLASS_INFO, *LPSUBCLASS_INFO; 00174 00175 /* undocumented functions */ 00176 00177 LPVOID WINAPI Alloc (DWORD) __WINE_ALLOC_SIZE(1); 00178 LPVOID WINAPI ReAlloc (LPVOID, DWORD) __WINE_ALLOC_SIZE(2); 00179 BOOL WINAPI Free (LPVOID); 00180 DWORD WINAPI GetSize (LPVOID); 00181 00182 INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT); 00183 INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT); 00184 00185 LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet); 00186 BOOL WINAPI MirrorIcon(HICON *phicon1, HICON *phicon2); 00187 00188 extern void ANIMATE_Register(void) DECLSPEC_HIDDEN; 00189 extern void ANIMATE_Unregister(void) DECLSPEC_HIDDEN; 00190 extern void COMBOEX_Register(void) DECLSPEC_HIDDEN; 00191 extern void COMBOEX_Unregister(void) DECLSPEC_HIDDEN; 00192 extern void DATETIME_Register(void) DECLSPEC_HIDDEN; 00193 extern void DATETIME_Unregister(void) DECLSPEC_HIDDEN; 00194 extern void FLATSB_Register(void) DECLSPEC_HIDDEN; 00195 extern void FLATSB_Unregister(void) DECLSPEC_HIDDEN; 00196 extern void HEADER_Register(void) DECLSPEC_HIDDEN; 00197 extern void HEADER_Unregister(void) DECLSPEC_HIDDEN; 00198 extern void HOTKEY_Register(void) DECLSPEC_HIDDEN; 00199 extern void HOTKEY_Unregister(void) DECLSPEC_HIDDEN; 00200 extern void IPADDRESS_Register(void) DECLSPEC_HIDDEN; 00201 extern void IPADDRESS_Unregister(void) DECLSPEC_HIDDEN; 00202 extern void LISTVIEW_Register(void) DECLSPEC_HIDDEN; 00203 extern void LISTVIEW_Unregister(void) DECLSPEC_HIDDEN; 00204 extern void MONTHCAL_Register(void) DECLSPEC_HIDDEN; 00205 extern void MONTHCAL_Unregister(void) DECLSPEC_HIDDEN; 00206 extern void NATIVEFONT_Register(void) DECLSPEC_HIDDEN; 00207 extern void NATIVEFONT_Unregister(void) DECLSPEC_HIDDEN; 00208 extern void PAGER_Register(void) DECLSPEC_HIDDEN; 00209 extern void PAGER_Unregister(void) DECLSPEC_HIDDEN; 00210 extern void PROGRESS_Register(void) DECLSPEC_HIDDEN; 00211 extern void PROGRESS_Unregister(void) DECLSPEC_HIDDEN; 00212 extern void REBAR_Register(void) DECLSPEC_HIDDEN; 00213 extern void REBAR_Unregister(void) DECLSPEC_HIDDEN; 00214 extern void STATUS_Register(void) DECLSPEC_HIDDEN; 00215 extern void STATUS_Unregister(void) DECLSPEC_HIDDEN; 00216 extern void SYSLINK_Register(void) DECLSPEC_HIDDEN; 00217 extern void SYSLINK_Unregister(void) DECLSPEC_HIDDEN; 00218 extern void TAB_Register(void) DECLSPEC_HIDDEN; 00219 extern void TAB_Unregister(void) DECLSPEC_HIDDEN; 00220 extern void TOOLBAR_Register(void) DECLSPEC_HIDDEN; 00221 extern void TOOLBAR_Unregister(void) DECLSPEC_HIDDEN; 00222 extern void TOOLTIPS_Register(void) DECLSPEC_HIDDEN; 00223 extern void TOOLTIPS_Unregister(void) DECLSPEC_HIDDEN; 00224 extern void TRACKBAR_Register(void) DECLSPEC_HIDDEN; 00225 extern void TRACKBAR_Unregister(void) DECLSPEC_HIDDEN; 00226 extern void TREEVIEW_Register(void) DECLSPEC_HIDDEN; 00227 extern void TREEVIEW_Unregister(void) DECLSPEC_HIDDEN; 00228 extern void UPDOWN_Register(void) DECLSPEC_HIDDEN; 00229 extern void UPDOWN_Unregister(void) DECLSPEC_HIDDEN; 00230 00231 00232 int MONTHCAL_MonthLength(int month, int year) DECLSPEC_HIDDEN; 00233 int MONTHCAL_CalculateDayOfWeek(SYSTEMTIME *date, BOOL inplace) DECLSPEC_HIDDEN; 00234 00235 extern void THEMING_Initialize(void) DECLSPEC_HIDDEN; 00236 extern void THEMING_Uninitialize(void) DECLSPEC_HIDDEN; 00237 extern LRESULT THEMING_CallOriginalClass(HWND, UINT, WPARAM, LPARAM) DECLSPEC_HIDDEN; 00238 extern void THEMING_SetSubclassData(HWND, ULONG_PTR) DECLSPEC_HIDDEN; 00239 00240 #endif /* __WINE_COMCTL32_H */ Generated on Fri May 25 2012 04:20:56 for ReactOS by
1.7.6.1
|