| 1 | /* $Id: comctl32.h,v 1.20 2001-04-29 10:30:56 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * Win32 common controls implementation
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (C) 1999 Achim Hasenmueller
|
|---|
| 6 | *
|
|---|
| 7 | * Based on the work of the WINE group (www.winehq.com)
|
|---|
| 8 | *
|
|---|
| 9 | *
|
|---|
| 10 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 11 | *
|
|---|
| 12 | */
|
|---|
| 13 |
|
|---|
| 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 | #ifdef __cplusplus
|
|---|
| 30 | extern "C" {
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
| 33 | /* registers window classes inside this DLL */
|
|---|
| 34 | void CDECL RegisterCOMCTL32WindowClasses(unsigned long hinstDLL);
|
|---|
| 35 | void CDECL UnregisterCOMCTL32WindowClasses(void);
|
|---|
| 36 | #ifdef __cplusplus
|
|---|
| 37 | }
|
|---|
| 38 | #endif
|
|---|
| 39 |
|
|---|
| 40 | // string functions from kernel32
|
|---|
| 41 | LPWSTR WIN32API HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str );
|
|---|
| 42 | LPSTR WIN32API HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str );
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | /**************************************************************************
|
|---|
| 46 | * UNDOCUMENTED functions
|
|---|
| 47 | */
|
|---|
| 48 |
|
|---|
| 49 | /* private heap memory functions */
|
|---|
| 50 |
|
|---|
| 51 | LPVOID WINAPI COMCTL32_Alloc (DWORD);
|
|---|
| 52 | LPVOID WINAPI COMCTL32_ReAlloc (LPVOID, DWORD);
|
|---|
| 53 | BOOL WINAPI COMCTL32_Free (LPVOID);
|
|---|
| 54 | DWORD WINAPI COMCTL32_GetSize (LPVOID);
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | extern HMODULE COMCTL32_hModule;
|
|---|
| 58 |
|
|---|
| 59 | /* Property sheet / Wizard */
|
|---|
| 60 | #define IDD_PROPSHEET 1006
|
|---|
| 61 | #define IDD_WIZARD 1020
|
|---|
| 62 |
|
|---|
| 63 | #define IDC_TABCONTROL 12320
|
|---|
| 64 | #define IDC_APPLY_BUTTON 12321
|
|---|
| 65 | #define IDC_BACK_BUTTON 12323
|
|---|
| 66 | #define IDC_NEXT_BUTTON 12324
|
|---|
| 67 | #define IDC_FINISH_BUTTON 12325
|
|---|
| 68 | #define IDC_SUNKEN_LINE 12326
|
|---|
| 69 |
|
|---|
| 70 | #define IDS_CLOSE 4160
|
|---|
| 71 |
|
|---|
| 72 | /* Toolbar customization dialog */
|
|---|
| 73 | #define IDD_TBCUSTOMIZE 200
|
|---|
| 74 |
|
|---|
| 75 | #define IDC_AVAILBTN_LBOX 201
|
|---|
| 76 | #define IDC_RESET_BTN 202
|
|---|
| 77 | #define IDC_TOOLBARBTN_LBOX 203
|
|---|
| 78 | #define IDC_REMOVE_BTN 204
|
|---|
| 79 | #define IDC_HELP_BTN 205
|
|---|
| 80 | #define IDC_MOVEUP_BTN 206
|
|---|
| 81 | #define IDC_MOVEDN_BTN 207
|
|---|
| 82 |
|
|---|
| 83 | #define IDS_SEPARATOR 1024
|
|---|
| 84 |
|
|---|
| 85 | /* Toolbar imagelist bitmaps */
|
|---|
| 86 | #define IDB_STD_SMALL 120
|
|---|
| 87 | #define IDB_STD_LARGE 121
|
|---|
| 88 | #define IDB_VIEW_SMALL 124
|
|---|
| 89 | #define IDB_VIEW_LARGE 125
|
|---|
| 90 | #define IDB_HIST_SMALL 130
|
|---|
| 91 | #define IDB_HIST_LARGE 131
|
|---|
| 92 |
|
|---|
| 93 | //direction bitmaps
|
|---|
| 94 | #define IDB_DIRECTION_ALL 132
|
|---|
| 95 | #define IDB_DIRECTION_NS 133
|
|---|
| 96 | #define IDB_DIRECTION WE 134
|
|---|
| 97 |
|
|---|
| 98 | //Header filter bitmap
|
|---|
| 99 | #define IDB_HEADER_FILTER 140
|
|---|
| 100 |
|
|---|
| 101 | //cursors
|
|---|
| 102 | #define IDC_COMCTL32_ERROR 20480
|
|---|
| 103 | #define IDC_COMCTL32_INFORMATION 20481
|
|---|
| 104 | #define IDC_COMCTL32_EXCLAMATION 20482
|
|---|
| 105 |
|
|---|
| 106 | #define IDC_COMCTL32_DRAGRECT 102
|
|---|
| 107 | #define IDC_COMCTL32_ARROW1 104
|
|---|
| 108 | #define IDC_COMCTL32_ARROW2 105
|
|---|
| 109 | #define IDC_COMCTL32_DRAGHLINE 106
|
|---|
| 110 | #define IDC_COMCTL32_SPLITHLINE 107
|
|---|
| 111 | #define IDC_COMCTL32_HAND 108
|
|---|
| 112 | #define IDC_COMCTL32_DIRECTION_NS 109
|
|---|
| 113 | #define IDC_COMCTL32_DIRECTION_WE 110
|
|---|
| 114 | #define IDC_COMCTL32_DIRECTION_ALL 111
|
|---|
| 115 | #define IDC_COMCTL32_DIRECTION_N 112
|
|---|
| 116 | #define IDC_COMCTL32_DIRECTION_S 113
|
|---|
| 117 | #define IDC_COMCTL32_DIRECTION_E 114
|
|---|
| 118 | #define IDC_COMCTL32_DIRECTION_W 115
|
|---|
| 119 | #define IDC_COMCTL32_DIRECTION_NE 116
|
|---|
| 120 | #define IDC_COMCTL32_DIRECTION_NW 117
|
|---|
| 121 | #define IDC_COMCTL32_DIRECTION_SE 118
|
|---|
| 122 | #define IDC_COMCTL32_DIRECTION_SW 119
|
|---|
| 123 |
|
|---|
| 124 | #define IDC_COMCTL32_SPLITVLINE 135
|
|---|
| 125 | #define IDC_COMCTL32_ENTER 150
|
|---|
| 126 |
|
|---|
| 127 | /* Month calendar month menu popup */
|
|---|
| 128 | #define IDD_MCMONTHMENU 300
|
|---|
| 129 |
|
|---|
| 130 | #define IDM_JAN 301
|
|---|
| 131 | #define IDM_FEB 302
|
|---|
| 132 | #define IDM_MAR 303
|
|---|
| 133 | #define IDM_APR 304
|
|---|
| 134 | #define IDM_MAY 305
|
|---|
| 135 | #define IDM_JUN 306
|
|---|
| 136 | #define IDM_JUL 307
|
|---|
| 137 | #define IDM_AUG 308
|
|---|
| 138 | #define IDM_SEP 309
|
|---|
| 139 | #define IDM_OCT 310
|
|---|
| 140 | #define IDM_NOV 311
|
|---|
| 141 | #define IDM_DEC 312
|
|---|
| 142 |
|
|---|
| 143 | #define IDM_TODAY 4163
|
|---|
| 144 | #define IDM_GOTODAY 4164
|
|---|
| 145 |
|
|---|
| 146 | /* Treeview Checboxes */
|
|---|
| 147 |
|
|---|
| 148 | #define IDT_CHECK 401
|
|---|
| 149 |
|
|---|
| 150 |
|
|---|
| 151 | /* Header cursors */
|
|---|
| 152 | #define IDC_DIVIDER 106
|
|---|
| 153 | #define IDC_DIVIDEROPEN 107
|
|---|
| 154 |
|
|---|
| 155 |
|
|---|
| 156 | /* DragList icon */
|
|---|
| 157 | #define IDI_DRAGARROW 150
|
|---|
| 158 |
|
|---|
| 159 | #define COMCTL32_VERSION_MINOR 0
|
|---|
| 160 | #define WINE_FILEVERSION 5, COMCTL32_VERSION_MINOR, 0, 0
|
|---|
| 161 | #define WINE_FILEVERSIONSTR "5.00"
|
|---|
| 162 |
|
|---|
| 163 | #define UINT_PTR DWORD
|
|---|
| 164 |
|
|---|
| 165 | #ifdef __cplusplus
|
|---|
| 166 | extern "C" {
|
|---|
| 167 | #endif
|
|---|
| 168 |
|
|---|
| 169 | void ANIMATE_Register(void);
|
|---|
| 170 | void ANIMATE_Unregister(void);
|
|---|
| 171 | void COMBOEX_Register(void);
|
|---|
| 172 | void COMBOEX_Unregister(void);
|
|---|
| 173 | void DATETIME_Register(void);
|
|---|
| 174 | void DATETIME_Unregister(void);
|
|---|
| 175 | void FLATSB_Register(void);
|
|---|
| 176 | void FLATSB_Unregister(void);
|
|---|
| 177 | void HEADER_Register(void);
|
|---|
| 178 | void HEADER_Unregister(void);
|
|---|
| 179 | void HOTKEY_Register(void);
|
|---|
| 180 | void HOTKEY_Unregister(void);
|
|---|
| 181 | void IPADDRESS_Register(void);
|
|---|
| 182 | void IPADDRESS_Unregister(void);
|
|---|
| 183 | void LISTVIEW_Register(void);
|
|---|
| 184 | void LISTVIEW_Unregister(void);
|
|---|
| 185 | void MONTHCAL_Register(void);
|
|---|
| 186 | void MONTHCAL_Unregister(void);
|
|---|
| 187 | void NATIVEFONT_Register(void);
|
|---|
| 188 | void NATIVEFONT_Unregister(void);
|
|---|
| 189 | void PAGER_Register(void);
|
|---|
| 190 | void PAGER_Unregister(void);
|
|---|
| 191 | void PROGRESS_Register(void);
|
|---|
| 192 | void PROGRESS_Unregister(void);
|
|---|
| 193 | void REBAR_Register(void);
|
|---|
| 194 | void REBAR_Unregister(void);
|
|---|
| 195 | void STATUS_Register(void);
|
|---|
| 196 | void STATUS_Unregister(void);
|
|---|
| 197 | void TAB_Register(void);
|
|---|
| 198 | void TAB_Unregister(void);
|
|---|
| 199 | void TOOLBAR_Register(void);
|
|---|
| 200 | void TOOLBAR_Unregister(void);
|
|---|
| 201 | void TOOLTIPS_Register(void);
|
|---|
| 202 | void TOOLTIPS_Unregister(void);
|
|---|
| 203 | void TRACKBAR_Register(void);
|
|---|
| 204 | void TRACKBAR_Unregister(void);
|
|---|
| 205 | void TREEVIEW_Register(void);
|
|---|
| 206 | void TREEVIEW_Unregister(void);
|
|---|
| 207 | void UPDOWN_Register(void);
|
|---|
| 208 | void UPDOWN_Unregister(void);
|
|---|
| 209 |
|
|---|
| 210 |
|
|---|
| 211 | INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
|
|---|
| 212 | BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
|
|---|
| 213 |
|
|---|
| 214 | #ifdef __cplusplus
|
|---|
| 215 | }
|
|---|
| 216 | #endif
|
|---|
| 217 |
|
|---|
| 218 | #endif /* _H_COMCTL32 */
|
|---|