Changeset 119 for Include/api_gdi.sbp


Ignore:
Timestamp:
Feb 23, 2007, 11:00:24 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

Unicode (#50) 前準備
Byte→Char (#51) 型名は殆ど完了、ただし中身までは手を付けていないものが多い

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_gdi.sbp

    r1 r119  
    484484    lfFaceName[ELM(LF_FACESIZE)] As WCHAR
    485485End Type
     486#ifdef UNICODE
     487TypeDef LOGFONT = LOGFONTW
     488#else
    486489TypeDef LOGFONT = LOGFONTA
     490#endif
    487491Declare Function CreateFontIndirect Lib "gdi32" Alias "CreateFontIndirectA" (ByRef lplf As LOGFONT) As HFONT
    488492
     
    730734
    731735Declare Function GetTextColor Lib "gdi32" (hdc As HDC) As DWord
    732 Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (hdc As HDC, lpString As BytePtr, cbString As Long, ByRef lpSize As SIZE) As Long
     736Declare Function GetTextExtentPoint32A Lib "gdi32" (hdc As HDC, pString As PCSTR, cbString As Long, ByRef Size As SIZE) As Long
     737Declare Function GetTextExtentPoint32W Lib "gdi32" (hdc As HDC, pString As PCWSTR, cbString As Long, ByRef Size As SIZE) As Long
     738#ifdef UNICODE
     739Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32W" (hdc As HDC, pString As PCTSTR, cbString As Long, ByRef Size As SIZE) As Long
     740#else
     741Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (hdc As HDC, pString As PCTSTR, cbString As Long, ByRef Size As SIZE) As Long
     742#endif
    733743
    734744Const TMPF_FIXED_PITCH = &H01
     
    836846Declare Function StrokeAndFillPath Lib "gdi32" (hdc As HDC) As Long
    837847Declare Function StrokePath Lib "gdi32" (DC As DWord) As Long
    838 Declare Function TextOut Lib "gdi32" Alias "TextOutA" (hdc As HDC, nXStart As Long, nYStart As Long, lpString As BytePtr, cbString As Long) As Long
    839 
     848Declare Function TextOutA Lib "gdi32" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCSTR, cbString As Long) As Long
     849Declare Function TextOutW Lib "gdi32" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCWSTR, cbString As Long) As Long
     850#ifdef UNICODE
     851Declare Function TextOut Lib "gdi32" Alias "TextOutW" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCTSTR, cbString As Long) As Long
     852#else
     853Declare Function TextOut Lib "gdi32" Alias "TextOutA" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCTSTR, cbString As Long) As Long
     854#endif
    840855
    841856/* Pixel Format */
Note: See TracChangeset for help on using the changeset viewer.