Changeset 141 for Include/api_commdlg.sbp
- Timestamp:
- Mar 8, 2007, 10:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_commdlg.sbp
r1 r141 3 3 #ifndef _INC_COMMDLG 4 4 #define _INC_COMMDLG 5 6 #ifdef UNICODE 7 Const _FuncName_ChooseColor = "ChooseColorW" 8 Const _FuncName_ChooseFont = "ChooseFontW" 9 Const _FuncName_FindText = "FindTextW" 10 Const _FuncName_GetOpenFileName = "GetOpenFileNameW" 11 Const _FuncName_GetSaveFileName = "GetSaveFileNameW" 12 Const _FuncName_GetFileTitle = "GetFileTitleW" 13 Const _FuncName_PageSetupDlg = "PageSetupDlgW" 14 Const _FuncName_PrintDlg = "PrintDlgW" 15 #else 16 Const _FuncName_ChooseColor = "ChooseColorA" 17 Const _FuncName_ChooseFont = "ChooseFontA" 18 Const _FuncName_FindText = "FindTextA" 19 Const _FuncName_GetOpenFileName = "GetOpenFileNameA" 20 Const _FuncName_GetSaveFileName = "GetSaveFileNameA" 21 Const _FuncName_GetFileTitle = "GetFileTitleA" 22 Const _FuncName_PageSetupDlg = "PageSetupDlgA" 23 Const _FuncName_PrintDlg = "PrintDlgA" 24 #endif 5 25 6 26 TypeDef LPCOMMDLGHOOKPROC = *Function(hdlg As HWND, uiMsg As DWord, wp As WPARAM, lp As LPARAM) As ULONG_PTR … … 66 86 Const CC_ANYCOLOR = &H00000100 67 87 TypeDef LPCCHOOKPROC = LPCOMMDLGHOOKPROC 68 Type CHOOSECOLOR 88 Type CHOOSECOLORW 89 lStructSize As DWord 90 hwndOwner As HWND 91 hInstance As HINSTANCE 92 rgbResult As DWord 93 lpCustColors As *DWord 94 Flags As DWord 95 lCustData As DWord 96 lpfnHook As LPCCHOOKPROC 97 lpTemplateName As LPCWSTR 98 End Type 99 Type CHOOSECOLORA 69 100 lStructSize As DWord 70 101 hwndOwner As HWND … … 77 108 lpTemplateName As LPCSTR 78 109 End Type 79 Declare Function ChooseColor Lib "comdlg32" Alias "ChooseColorA" (ByRef lpcc As CHOOSECOLOR) As BOOL 110 #ifdef UNICODE 111 TypeDef CHOOSECOLOR = CHOOSECOLORW 112 #else 113 TypeDef CHOOSECOLOR = CHOOSECOLORA 114 #endif 115 Declare Function ChooseColor Lib "comdlg32" Alias _FuncName_ChooseColor (ByRef cc As CHOOSECOLOR) As BOOL 80 116 81 117 … … 118 154 Const REGULAR_FONTTYPE = &H0400 119 155 TypeDef LPCFHOOKPROC = LPCOMMDLGHOOKPROC 120 Type CHOOSEFONT 156 Type CHOOSEFONTW 121 157 lStructSize As DWord 122 158 hwndOwner As HWND 123 159 hDC As HDC 124 lpLogFont As *LOGFONT 160 lpLogFont As *LOGFONTW 161 iPointSize As Long 162 Flags As DWord 163 rgbColors As DWord 164 lCustData As LPARAM 165 lpfnHook As LPCFHOOKPROC 166 lpTemplateName As LPCWSTR 167 hInstance As HINSTANCE 168 lpszStyle As LPWSTR 169 nFontType As Word 170 ___MISSING_ALIGNMENT__ As Word 171 nSizeMin As Long 172 nSizeMax As Long 173 End Type 174 Type CHOOSEFONTA 175 lStructSize As DWord 176 hwndOwner As HWND 177 hDC As HDC 178 lpLogFont As *LOGFONTA 125 179 iPointSize As Long 126 180 Flags As DWord … … 136 190 nSizeMax As Long 137 191 End Type 138 Declare Function ChooseFont Lib "comdlg32" Alias "ChooseFontA" (ByRef lpcf As CHOOSEFONT) As BOOL 192 #ifdef UNICODE 193 TypeDef CHOOSEFONT = CHOOSEFONTW 194 #else 195 TypeDef CHOOSEFONT = CHOOSEFONTA 196 #endif 197 Declare Function ChooseFont Lib "comdlg32" Alias _FuncName_ChooseFont (ByRef cf As CHOOSEFONT) As BOOL 139 198 140 199 … … 160 219 Const FR_HIDEWHOLEWORD = &H00010000 161 220 TypeDef LPFRHOOKPROC = LPCOMMDLGHOOKPROC 162 Type FINDREPLACE 221 Type FINDREPLACEW 222 lStructSize As DWord 223 hwndOwner As HWND 224 hInstance As HINSTANCE 225 Flags As DWord 226 lpstrFindWhat As LPWSTR 227 lpstrReplaceWith As LPWSTR 228 wFindWhatLen As Word 229 wReplaceWithLen As Word 230 lCustData As LPARAM 231 lpfnHook As LPFRHOOKPROC 232 lpTemplateName As LPCWSTR 233 End Type 234 Type FINDREPLACEA 163 235 lStructSize As DWord 164 236 hwndOwner As HWND … … 173 245 lpTemplateName As LPCSTR 174 246 End Type 175 Declare Function FindText Lib "comdlg32" Alias "FindTextA" (ByRef lpfr As FINDREPLACE) As BOOL 247 #ifdef UNICODE 248 TypeDef FINDREPLACE = FINDREPLACEW 249 #else 250 TypeDef FINDREPLACE = FINDREPLACEA 251 #endif 252 Declare Function FindText Lib "comdlg32" Alias _FuncName_FindText (ByRef fr As FINDREPLACE) As BOOL 176 253 177 254 … … 204 281 Const OFN_ENABLESIZING = &H00800000 205 282 TypeDef LPOFNHOOKPROC = LPCOMMDLGHOOKPROC 206 Type OPENFILENAME 283 Type OPENFILENAMEW 284 lStructSize As DWord 285 hwndOwner As HWND 286 hInstance As HINSTANCE 287 lpstrFilter As LPCWSTR 288 lpstrCustomFilter As LPWSTR 289 nMaxCustFilter As DWord 290 nFilterIndex As DWord 291 lpstrFile As LPWSTR 292 nMaxFile As DWord 293 lpstrFileTitle As LPWSTR 294 nMaxFileTitle As DWord 295 lpstrInitialDir As LPCWSTR 296 lpstrTitle As LPCWSTR 297 Flags As DWord 298 nFileOffset As Word 299 nFileExtension As Word 300 lpstrDefExt As LPCWSTR 301 lCustData As LPARAM 302 lpfnHook As LPOFNHOOKPROC 303 lpTemplateName As LPCWSTR 304 End Type 305 Type OPENFILENAMEA 207 306 lStructSize As DWord 208 307 hwndOwner As HWND … … 226 325 lpTemplateName As LPCSTR 227 326 End Type 228 Declare Function GetOpenFileName Lib "comdlg32" Alias "GetOpenFileNameA" (ByRef lpofn As OPENFILENAME) As BOOL 229 Declare Function GetSaveFileName Lib "comdlg32" Alias "GetSaveFileNameA" (ByRef lpofn As OPENFILENAME) As BOOL 230 Declare Function GetFileTitle Lib "comdlg32" Alias "GetFileTitleA" (lpszFile As LPCSTR, lpszTitle As LPSTR, cbBuf As Word) As Integer 327 #ifdef UNICODE 328 TypeDef OPENFILENAME = OPENFILENAMEW 329 #else 330 TypeDef OPENFILENAME = OPENFILENAMEA 331 #endif 332 Declare Function GetOpenFileName Lib "comdlg32" Alias _FuncName_GetOpenFileName (ByRef ofn As OPENFILENAME) As BOOL 333 Declare Function GetSaveFileName Lib "comdlg32" Alias _FuncName_GetSaveFileName (ByRef ofn As OPENFILENAME) As BOOL 334 Declare Function GetFileTitle Lib "comdlg32" Alias _FuncName_GetFileTitle (lpszFile As LPCTSTR, lpszTitle As LPTSTR, cbBuf As Word) As Integer 231 335 232 336 … … 255 359 TypeDef LPPAGESETUPHOOK = LPCOMMDLGHOOKPROC 256 360 TypeDef LPPAGEPAINTHOOK = LPCOMMDLGHOOKPROC 257 Type PAGESETUPDLG 361 Type PAGESETUPDLGW 362 lStructSize As DWord 363 hwndOwner As HWND 364 hDevMode As HGLOBAL 365 hDevNames As HGLOBAL 366 Flags As DWord 367 ptPaperSize As POINTAPI 368 rtMinMargin As RECT 369 rtMargin As RECT 370 hInstance As HINSTANCE 371 lCustData As LPARAM 372 lpfnPageSetupHook As LPPAGESETUPHOOK 373 lpfnPagePaintHook As LPPAGEPAINTHOOK 374 lpPageSetupTemplateName As LPCWSTR 375 hPageSetupTemplate As HGLOBAL 376 End Type 377 Type PAGESETUPDLGA 258 378 lStructSize As DWord 259 379 hwndOwner As HWND … … 271 391 hPageSetupTemplate As HGLOBAL 272 392 End Type 273 Declare Function PageSetupDlg Lib "comdlg32" Alias "PageSetupDlgA" (ByRef lppsd As PAGESETUPDLG) As BOOL 393 #ifdef UNICODE 394 TypeDef PAGESETUPDLG = PAGESETUPDLGW 395 #else 396 TypeDef PAGESETUPDLG = PAGESETUPDLGA 397 #endif 398 399 Declare Function PageSetupDlg Lib "comdlg32" Alias _FuncName_PageSetupDlg (ByRef psd As PAGESETUPDLG) As BOOL 274 400 275 401 … … 304 430 TypeDef LPSETUPHOOKPROC = LPCOMMDLGHOOKPROC 305 431 #ifdef _WIN64 306 Type PRINTDLG 307 #else 308 Type Align(1) PRINTDLG 432 Type PRINTDLGW 433 #else 434 Type Align(1) PRINTDLGW 435 #endif 436 lStructSize As DWord 437 hwndOwner As HWND 438 hDevMode As HGLOBAL 439 hDevNames As HGLOBAL 440 hDC As HDC 441 Flags As DWord 442 nFromPage As Word 443 nToPage As Word 444 nMinPage As Word 445 nMaxPage As Word 446 nCopies As Word 447 hInstance As HINSTANCE 448 lCustData As LPARAM 449 lpfnPrintHook As LPPAGEPAINTHOOK 450 lpfnSetupHook As LPSETUPHOOKPROC 451 lpPrintTemplateName As LPCWSTR 452 lpSetupTemplateName As LPCWSTR 453 hPrintTemplate As HGLOBAL 454 hSetupTemplate As HGLOBAL 455 End Type 456 #ifdef _WIN64 457 Type PRINTDLGA 458 #else 459 Type Align(1) PRINTDLGA 309 460 #endif 310 461 lStructSize As DWord … … 328 479 hSetupTemplate As HGLOBAL 329 480 End Type 330 Declare Function PrintDlg Lib "comdlg32" Alias "PrintDlgA" (ByRef lppd As PRINTDLG) As BOOL 481 #ifdef UNICODE 482 TypeDef PRINTDLG = PRINTDLGW 483 #else 484 TypeDef PRINTDLG = PRINTDLGA 485 #endif 486 Declare Function PrintDlg Lib "comdlg32" Alias _FuncName_PrintDlg (ByRef pd As PRINTDLG) As BOOL 331 487 332 488
Note:
See TracChangeset
for help on using the changeset viewer.