Changeset 137 for Include/api_window.sbp


Ignore:
Timestamp:
Mar 7, 2007, 5:36:31 PM (18 years ago)
Author:
イグトランス (egtra)
Message:

#55#73#75とりあえず完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_window.sbp

    r119 r137  
    55#define _INC_WINDOW
    66
     7#ifdef UNICODE
     8Const _FuncName_CreateWindowEx = "CreateWindowExW"
     9Const _FuncName_RegisterClassEx = "RegisterClassExW"
     10#else
     11Const _FuncName_CreateWindowEx = "CreateWindowExA"
     12Const _FuncName_RegisterClassEx = "RegisterClassExA"
     13#endif
    714
    815Const CREATEPROCESS_MANIFEST_RESOURCE_ID = 1
     
    3441Const CS_BYTEALIGNWINDOW = &H2000
    3542Const CS_GLOBALCLASS =     &H4000
    36 Type WNDCLASSEX
     43Type WNDCLASSEXA
    3744    cbSize        As DWord
    3845    style         As DWord
     
    4451    hCursor       As HCURSOR
    4552    hbrBackground As HBRUSH
    46     lpszMenuName  As BytePtr
    47     lpszClassName As BytePtr
     53    lpszMenuName  As LPCSTR
     54    lpszClassName As LPCSTR
    4855    hIconSm       As HICON
    4956End Type
    50 
     57Type WNDCLASSEXW
     58    cbSize        As DWord
     59    style         As DWord
     60    lpfnWndProc   As WNDPROC
     61    cbClsExtra    As Long
     62    cbWndExtra    As Long
     63    hInstance     As HINSTANCE
     64    hIcon         As HICON
     65    hCursor       As HCURSOR
     66    hbrBackground As HBRUSH
     67    lpszMenuName  As LPCWSTR
     68    lpszClassName As LPCWSTR
     69    hIconSm       As HICON
     70End Type
     71#ifdef UNICODE
     72TypeDef WNDCLASSEX = WNDCLASSEXW
     73#else
     74TypeDef WNDCLASSEX = WNDCLASSEXA
     75#endif
    5176
    5277'------------------------
     
    311336
    312337Const CW_USEDEFAULT = &H80000000
    313 Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (dwExStyle As DWord, lpClassName As PCSTR, lpWindowName As PCSTR, dwStyle As DWord, x As Long, y As Long, nWidth As Long, nHeight As Long, hWndParent As HWND, hMenu As HMENU, hInstance As HINSTANCE, lpParm As VoidPtr) As HWND
     338Declare Function CreateWindowEx Lib "user32" Alias _FuncName_CreateWindowEx (dwExStyle As DWord, pClassName As PCTSTR, lpWindowName As PCTSTR, dwStyle As DWord, x As Long, y As Long, nWidth As Long, nHeight As Long, hwndParent As HWND, hmenu As HMENU, hInstance As HINSTANCE, pParm As VoidPtr) As HWND
    314339
    315340Declare Function DefWindowProc Lib "user32" Alias "DefWindowProcA" (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
     
    862887Declare Function RedrawWindow Lib "user32" (hWnd As HWND, ByRef lprcUpdate As RECT, hrgnUpdate As HRGN, flags As DWord) As BOOL
    863888
    864 Declare Function RegisterClassEx Lib "user32" Alias "RegisterClassExA" (ByRef wcx As WNDCLASSEX) As ATOM
     889Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM
    865890Declare Function RegisterClipboardFormat Lib "user32" Alias "RegisterClipboardFormatA" (lpszFormat As PCSTR) As DWord
    866891Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageA" (lpString As PCSTR) As DWord
Note: See TracChangeset for help on using the changeset viewer.