Ignore:
Timestamp:
Mar 8, 2007, 10:42:50 AM (18 years ago)
Author:
イグトランス (egtra)
Message:

#50 API宣言の変更完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_commdlg.sbp

    r1 r141  
    33#ifndef _INC_COMMDLG
    44#define _INC_COMMDLG
     5
     6#ifdef UNICODE
     7Const _FuncName_ChooseColor = "ChooseColorW"
     8Const _FuncName_ChooseFont = "ChooseFontW"
     9Const _FuncName_FindText = "FindTextW"
     10Const _FuncName_GetOpenFileName = "GetOpenFileNameW"
     11Const _FuncName_GetSaveFileName = "GetSaveFileNameW"
     12Const _FuncName_GetFileTitle = "GetFileTitleW"
     13Const _FuncName_PageSetupDlg = "PageSetupDlgW"
     14Const _FuncName_PrintDlg = "PrintDlgW"
     15#else
     16Const _FuncName_ChooseColor = "ChooseColorA"
     17Const _FuncName_ChooseFont = "ChooseFontA"
     18Const _FuncName_FindText = "FindTextA"
     19Const _FuncName_GetOpenFileName = "GetOpenFileNameA"
     20Const _FuncName_GetSaveFileName = "GetSaveFileNameA"
     21Const _FuncName_GetFileTitle = "GetFileTitleA"
     22Const _FuncName_PageSetupDlg = "PageSetupDlgA"
     23Const _FuncName_PrintDlg = "PrintDlgA"
     24#endif
    525
    626TypeDef LPCOMMDLGHOOKPROC = *Function(hdlg As HWND, uiMsg As DWord, wp As WPARAM, lp As LPARAM) As ULONG_PTR
     
    6686Const CC_ANYCOLOR =             &H00000100
    6787TypeDef LPCCHOOKPROC = LPCOMMDLGHOOKPROC
    68 Type CHOOSECOLOR
     88Type 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
     98End Type
     99Type CHOOSECOLORA
    69100    lStructSize    As DWord
    70101    hwndOwner      As HWND
     
    77108    lpTemplateName As LPCSTR
    78109End Type
    79 Declare Function ChooseColor Lib "comdlg32" Alias "ChooseColorA" (ByRef lpcc As CHOOSECOLOR) As BOOL
     110#ifdef UNICODE
     111TypeDef CHOOSECOLOR = CHOOSECOLORW
     112#else
     113TypeDef CHOOSECOLOR = CHOOSECOLORA
     114#endif
     115Declare Function ChooseColor Lib "comdlg32" Alias _FuncName_ChooseColor (ByRef cc As CHOOSECOLOR) As BOOL
    80116
    81117
     
    118154Const REGULAR_FONTTYPE =    &H0400
    119155TypeDef LPCFHOOKPROC = LPCOMMDLGHOOKPROC
    120 Type CHOOSEFONT
     156Type CHOOSEFONTW
    121157    lStructSize            As DWord
    122158    hwndOwner              As HWND
    123159    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
     173End Type
     174Type CHOOSEFONTA
     175    lStructSize            As DWord
     176    hwndOwner              As HWND
     177    hDC                    As HDC
     178    lpLogFont              As *LOGFONTA
    125179    iPointSize             As Long
    126180    Flags                  As DWord
     
    136190    nSizeMax               As Long
    137191End Type
    138 Declare Function ChooseFont Lib "comdlg32" Alias "ChooseFontA" (ByRef lpcf As CHOOSEFONT) As BOOL
     192#ifdef UNICODE
     193TypeDef CHOOSEFONT = CHOOSEFONTW
     194#else
     195TypeDef CHOOSEFONT = CHOOSEFONTA
     196#endif
     197Declare Function ChooseFont Lib "comdlg32" Alias _FuncName_ChooseFont (ByRef cf As CHOOSEFONT) As BOOL
    139198
    140199
     
    160219Const FR_HIDEWHOLEWORD =              &H00010000
    161220TypeDef LPFRHOOKPROC = LPCOMMDLGHOOKPROC
    162 Type FINDREPLACE
     221Type 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
     233End Type
     234Type FINDREPLACEA
    163235    lStructSize      As DWord
    164236    hwndOwner        As HWND
     
    173245    lpTemplateName   As LPCSTR
    174246End Type
    175 Declare Function FindText Lib "comdlg32" Alias "FindTextA" (ByRef lpfr As FINDREPLACE) As BOOL
     247#ifdef UNICODE
     248TypeDef FINDREPLACE = FINDREPLACEW
     249#else
     250TypeDef FINDREPLACE = FINDREPLACEA
     251#endif
     252Declare Function FindText Lib "comdlg32" Alias _FuncName_FindText (ByRef fr As FINDREPLACE) As BOOL
    176253
    177254
     
    204281Const OFN_ENABLESIZING =           &H00800000
    205282TypeDef LPOFNHOOKPROC = LPCOMMDLGHOOKPROC
    206 Type OPENFILENAME
     283Type 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
     304End Type
     305Type OPENFILENAMEA
    207306    lStructSize       As DWord
    208307    hwndOwner         As HWND
     
    226325    lpTemplateName    As LPCSTR
    227326End 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
     328TypeDef OPENFILENAME = OPENFILENAMEW
     329#else
     330TypeDef OPENFILENAME = OPENFILENAMEA
     331#endif
     332Declare Function GetOpenFileName Lib "comdlg32" Alias _FuncName_GetOpenFileName (ByRef ofn As OPENFILENAME) As BOOL
     333Declare Function GetSaveFileName Lib "comdlg32" Alias _FuncName_GetSaveFileName (ByRef ofn As OPENFILENAME) As BOOL
     334Declare Function GetFileTitle Lib "comdlg32" Alias _FuncName_GetFileTitle (lpszFile As LPCTSTR, lpszTitle As LPTSTR, cbBuf As Word) As Integer
    231335
    232336
     
    255359TypeDef LPPAGESETUPHOOK = LPCOMMDLGHOOKPROC
    256360TypeDef LPPAGEPAINTHOOK = LPCOMMDLGHOOKPROC
    257 Type PAGESETUPDLG
     361Type 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
     376End Type
     377Type PAGESETUPDLGA
    258378    lStructSize             As DWord
    259379    hwndOwner               As HWND
     
    271391    hPageSetupTemplate      As HGLOBAL
    272392End Type
    273 Declare Function PageSetupDlg Lib "comdlg32" Alias "PageSetupDlgA" (ByRef lppsd As PAGESETUPDLG) As BOOL
     393#ifdef UNICODE
     394TypeDef PAGESETUPDLG = PAGESETUPDLGW
     395#else
     396TypeDef PAGESETUPDLG = PAGESETUPDLGA
     397#endif
     398
     399Declare Function PageSetupDlg Lib "comdlg32" Alias _FuncName_PageSetupDlg (ByRef psd As PAGESETUPDLG) As BOOL
    274400
    275401
     
    304430TypeDef LPSETUPHOOKPROC = LPCOMMDLGHOOKPROC
    305431#ifdef _WIN64
    306 Type PRINTDLG
    307 #else
    308 Type Align(1) PRINTDLG
     432Type PRINTDLGW
     433#else
     434Type 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
     455End Type
     456#ifdef _WIN64
     457Type PRINTDLGA
     458#else
     459Type Align(1) PRINTDLGA
    309460#endif
    310461    lStructSize         As DWord
     
    328479    hSetupTemplate      As HGLOBAL
    329480End Type
    330 Declare Function PrintDlg Lib "comdlg32" Alias "PrintDlgA" (ByRef lppd As PRINTDLG) As BOOL
     481#ifdef UNICODE
     482TypeDef PRINTDLG = PRINTDLGW
     483#else
     484TypeDef PRINTDLG = PRINTDLGA
     485#endif
     486Declare Function PrintDlg Lib "comdlg32" Alias _FuncName_PrintDlg (ByRef pd As PRINTDLG) As BOOL
    331487
    332488
Note: See TracChangeset for help on using the changeset viewer.