Changeset 8382 for trunk/src/comctl32/comctl32.h
- Timestamp:
- May 8, 2002, 1:26:30 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/comctl32.h
r7815 r8382 1 /* $Id: comctl32.h,v 1.21 2002-02-06 17:23:18 sandervl Exp $ */2 /* 3 * Win32 common controls implementation1 /****************************************************************************** 2 * 3 * Common definitions (resource ids and global variables) 4 4 * 5 * Copyright (C) 1999 Achim Hasenmueller 5 * Copyright 1999 Thuy Nguyen 6 * Copyright 1999 Eric Kohl 6 7 * 7 * Based on the work of the WINE group (www.winehq.com) 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2.1 of the License, or (at your option) any later version. 8 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 9 17 * 10 * Project Odin Software License can be found in LICENSE.TXT 11 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with this library; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 12 21 */ 13 22 14 /* Status: Corel WINE 20000807 */ 15 16 #ifndef _H_COMCTL32 17 #define _H_COMCTL32 18 19 #include "winbase.h" 20 #include "wingdi.h" 21 #include "winuser.h" 22 #include <win/commctrl.h> 23 #include "unicode.h" 24 25 #define _OS2WIN_H 26 #define NO_ULONG 27 #include <misc.h> 28 29 #ifndef __cplusplus 30 #undef inline 31 #define inline 32 #endif 33 34 extern HBRUSH COMCTL32_hPattern55AABrush; 35 36 #ifdef __cplusplus 37 extern "C" { 38 #endif 39 40 /* registers window classes inside this DLL */ 41 void CDECL RegisterCOMCTL32WindowClasses(unsigned long hinstDLL); 42 void CDECL UnregisterCOMCTL32WindowClasses(void); 43 #ifdef __cplusplus 44 } 45 #endif 46 47 // string functions from kernel32 48 LPWSTR WIN32API HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str ); 49 LPSTR WIN32API HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str ); 50 51 52 /************************************************************************** 53 * UNDOCUMENTED functions 54 */ 55 56 /* private heap memory functions */ 57 58 LPVOID WINAPI COMCTL32_Alloc (DWORD); 59 LPVOID WINAPI COMCTL32_ReAlloc (LPVOID, DWORD); 60 BOOL WINAPI COMCTL32_Free (LPVOID); 61 DWORD WINAPI COMCTL32_GetSize (LPVOID); 62 23 #ifndef __WINE_COMCTL32_H 24 #define __WINE_COMCTL32_H 63 25 64 26 extern HMODULE COMCTL32_hModule; 27 extern HBRUSH COMCTL32_hPattern55AABrush; 65 28 66 29 /* Property sheet / Wizard */ … … 75 38 #define IDC_SUNKEN_LINE 12326 76 39 77 #define IDS_CLOSE 416040 #define IDS_CLOSE 4160 78 41 79 42 /* Toolbar customization dialog */ … … 98 61 #define IDB_HIST_LARGE 131 99 62 100 //direction bitmaps101 #define IDB_DIRECTION_ALL 132102 #define IDB_DIRECTION_NS 133103 #define IDB_DIRECTION WE 134104 105 //Header filter bitmap106 #define IDB_HEADER_FILTER 140107 108 //cursors109 #define IDC_COMCTL32_ERROR 20480110 #define IDC_COMCTL32_INFORMATION 20481111 #define IDC_COMCTL32_EXCLAMATION 20482112 113 #define IDC_COMCTL32_DRAGRECT 102114 #define IDC_COMCTL32_ARROW1 104115 #define IDC_COMCTL32_ARROW2 105116 #define IDC_COMCTL32_DRAGHLINE 106117 #define IDC_COMCTL32_SPLITHLINE 107118 #define IDC_COMCTL32_HAND 108119 #define IDC_COMCTL32_DIRECTION_NS 109120 #define IDC_COMCTL32_DIRECTION_WE 110121 #define IDC_COMCTL32_DIRECTION_ALL 111122 #define IDC_COMCTL32_DIRECTION_N 112123 #define IDC_COMCTL32_DIRECTION_S 113124 #define IDC_COMCTL32_DIRECTION_E 114125 #define IDC_COMCTL32_DIRECTION_W 115126 #define IDC_COMCTL32_DIRECTION_NE 116127 #define IDC_COMCTL32_DIRECTION_NW 117128 #define IDC_COMCTL32_DIRECTION_SE 118129 #define IDC_COMCTL32_DIRECTION_SW 119130 131 #define IDC_COMCTL32_SPLITVLINE 135132 #define IDC_COMCTL32_ENTER 150133 63 134 64 /* Month calendar month menu popup */ 135 65 #define IDD_MCMONTHMENU 300 136 66 137 #define IDM_JAN 138 #define IDM_FEB 139 #define IDM_MAR 140 #define IDM_APR 141 #define IDM_MAY 142 #define IDM_JUN 143 #define IDM_JUL 144 #define IDM_AUG 145 #define IDM_SEP 146 #define IDM_OCT 147 #define IDM_NOV 148 #define IDM_DEC 67 #define IDM_JAN 301 68 #define IDM_FEB 302 69 #define IDM_MAR 303 70 #define IDM_APR 304 71 #define IDM_MAY 305 72 #define IDM_JUN 306 73 #define IDM_JUL 307 74 #define IDM_AUG 308 75 #define IDM_SEP 309 76 #define IDM_OCT 310 77 #define IDM_NOV 311 78 #define IDM_DEC 312 149 79 150 80 #define IDM_TODAY 4163 … … 160 90 #define IDC_DIVIDEROPEN 107 161 91 92 #ifdef __WIN32OS2__ 93 /* Header filter bitmap */ 94 #define IDB_HEADER_FILTER 140 95 96 #define IDC_COMCTL32_DRAGHLINE 106 97 #define IDC_COMCTL32_SPLITHLINE 107 98 99 #endif 162 100 163 101 /* DragList icon */ 164 102 #define IDI_DRAGARROW 150 103 104 typedef struct 105 { 106 COLORREF clrBtnHighlight; /* COLOR_BTNHIGHLIGHT */ 107 COLORREF clrBtnShadow; /* COLOR_BTNSHADOW */ 108 COLORREF clrBtnText; /* COLOR_BTNTEXT */ 109 COLORREF clrBtnFace; /* COLOR_BTNFACE */ 110 COLORREF clrHighlight; /* COLOR_HIGHLIGHT */ 111 COLORREF clrHighlightText; /* COLOR_HIGHLIGHTTEXT */ 112 COLORREF clr3dHilight; /* COLOR_3DHILIGHT */ 113 COLORREF clr3dShadow; /* COLOR_3DSHADOW */ 114 COLORREF clr3dDkShadow; /* COLOR_3DDKSHADOW */ 115 COLORREF clr3dFace; /* COLOR_3DFACE */ 116 COLORREF clrWindow; /* COLOR_WINDOW */ 117 COLORREF clrWindowText; /* COLOR_WINDOWTEXT */ 118 COLORREF clrGrayText; /* COLOR_GREYTEXT */ 119 COLORREF clrActiveCaption; /* COLOR_ACTIVECAPTION */ 120 COLORREF clrInfoBk; /* COLOR_INFOBK */ 121 COLORREF clrInfoText; /* COLOR_INFOTEXT */ 122 } COMCTL32_SysColor; 123 124 extern COMCTL32_SysColor comctl32_color; 125 126 /* Internal function */ 127 HWND COMCTL32_CreateToolTip (HWND); 128 VOID COMCTL32_RefreshSysColors(void); 129 INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen); 130 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc); 165 131 166 132 #define COMCTL32_VERSION_MINOR 0 … … 168 134 #define WINE_FILEVERSIONSTR "5.00" 169 135 170 # define UINT_PTR DWORD171 136 #ifdef __WIN32OS2__ 137 #define swprintf wsprintfW 172 138 #ifdef __cplusplus 173 139 extern "C" { … … 216 182 217 183 218 INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);219 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);220 221 184 #ifdef __cplusplus 222 185 } 223 186 #endif 187 #endif 224 188 225 #endif /* _H_COMCTL32*/189 #endif /* __WINE_COMCTL32_H */
Note:
See TracChangeset
for help on using the changeset viewer.