Changeset 324


Ignore:
Timestamp:
Sep 7, 2007, 6:36:07 PM (17 years ago)
Author:
NoWest
Message:

ChangeDisplaySetting系を追加しました。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/api_window.sbp

    r303 r324  
    7979Const _FuncName_wsprintf = "wsprintfW"
    8080Const _FuncName_wvsprintf = "wvsprintfW"
     81Const _FuncName_ChangeDisplaySettings = "ChangeDisplaySettingsW"
     82Const _FuncName_ChangeDisplaySettingsEx= "ChangeDisplaySettingsExW"
     83Const _FuncName_EnumDisplaySettings= "EnumDisplaySettingsW"
     84Const _FuncName_EnumDisplaySettingsEx= "EnumDisplaySettingsExW"
     85Const _FuncName_EnumDisplayDevices= "EnumDisplayDevicesW"
    8186#else
    8287Const _FuncName_CallWindowProc = "CallWindowProcA"
     
    151156Const _FuncName_wsprintf = "wsprintfA"
    152157Const _FuncName_wvsprintf = "wvsprintfA"
     158Const _FuncName_ChangeDisplaySettings = "ChangeDisplaySettingsA"
     159Const _FuncName_ChangeDisplaySettingsEx= "ChangeDisplaySettingsExA"
     160Const _FuncName_EnumDisplaySettings= "EnumDisplaySettingsA"
     161Const _FuncName_EnumDisplaySettingsEx= "EnumDisplaySettingsExA"
     162Const _FuncName_EnumDisplayDevices= "EnumDisplayDevicesA"
    153163#endif
    154164
     
    14021412Declare Function SystemParametersInfo Lib "user32" Alias _FuncName_SystemParametersInfo (uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL
    14031413
     1414Const CDS_UPDATEREGISTRY = &H00000001
     1415Const CDS_TEST            = &H00000002
     1416Const CDS_FULLSCREEN      = &H00000004
     1417Const CDS_GLOBAL          = &H00000008
     1418Const CDS_SET_PRIMARY     = &H00000010
     1419Const CDS_VIDEOPARAMETERS = &H00000020
     1420Const CDS_RESET           = &H40000000
     1421Const CDS_NORESET         = &H10000000
     1422
     1423Const DISP_CHANGE_SUCCESSFUL    =   0
     1424Const DISP_CHANGE_RESTART       =   1
     1425Const DISP_CHANGE_FAILED        =  -1
     1426Const DISP_CHANGE_BADMODE       =  -2
     1427Const DISP_CHANGE_NOTUPDATED    =  -3
     1428Const DISP_CHANGE_BADFLAGS      =  -4
     1429Const DISP_CHANGE_BADPARAM      =  -5
     1430Const DISP_CHANGE_BADDUALVIEW   =  -6
     1431
     1432#ifdef _INC_GDI
     1433Declare Function ChangeDisplaySettingsA Lib "user32" (ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As Long
     1434Declare Function ChangeDisplaySettingsW Lib "user32" (ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As Long
     1435#ifdef UNICODE
     1436Declare Function ChangeDisplaySettings Lib "user32" Alias _FuncName_ChangeDisplaySettings (ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As Long
     1437#else
     1438Declare Function ChangeDisplaySettings Lib "user32" Alias _FuncName_ChangeDisplaySettings (ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As Long
     1439#endif
     1440
     1441Declare Function ChangeDisplaySettingsExA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal lpDevMode As *DEVMODEA, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
     1442Declare Function ChangeDisplaySettingsExW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal lpDevMode As *DEVMODEW, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
     1443#ifdef UNICODE
     1444Declare Function ChangeDisplaySettingsEx Lib "user32" Alias _FuncName_ChangeDisplaySettingsEx (ByVal lpszDeviceName As LPCWSTR, ByVal lpDevMode As *DEVMODEW, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
     1445#else
     1446Declare Function ChangeDisplaySettingsEx Lib "user32" Alias _FuncName_ChangeDisplaySettingsEx (ByVal lpszDeviceName As LPCSTR, ByVal lpDevMode As *DEVMODEA, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
     1447#endif
     1448
     1449Const ENUM_CURRENT_SETTINGS       = ((-1) As DWord)
     1450Const ENUM_REGISTRY_SETTINGS      = ((-2) As DWord)
     1451
     1452Declare Function EnumDisplaySettingsA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA) As BOOL
     1453Declare Function EnumDisplaySettingsW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW) As BOOL
     1454#ifdef UNICODE
     1455Declare Function EnumDisplaySettings Lib "user32" Alias _FuncName_EnumDisplaySettings (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW) As BOOL
     1456#else
     1457Declare Function EnumDisplaySettings Lib "user32" Alias _FuncName_EnumDisplaySettings (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA) As BOOL
     1458#endif
     1459
     1460/*#ifdef(WINVER >= 0x0500)
     1461Declare Function EnumDisplaySettingsExA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As BOOL
     1462Declare Function EnumDisplaySettingsExW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As BOOL
     1463#ifdef UNICODE
     1464Declare Function EnumDisplaySettingsEx Lib "user32" Alias _FuncName_EnumDisplaySettingsEx (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As BOOL
     1465#else
     1466Declare Function EnumDisplaySettingsEx Lib "user32" Alias _FuncName_EnumDisplaySettingsEx (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As BOOL
     1467#endif
     1468
     1469Const EDS_RAWMODE  = &H00000002
     1470
     1471Declare Function EnumDisplayDevicesA Lib "user32" (ByVal lpDevice As LPCSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEA, ByVal dwFlags As DWord) As BOOL
     1472Declare Function EnumDisplayDevicesW Lib "user32" (ByVal lpDevice As LPCWSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEW, ByVal dwFlags As DWord)As BOOL
     1473#ifdef UNICODE
     1474Declare Function EnumDisplayDevices Lib "user32" Alias _FuncName_EnumDisplayDevices (ByVal lpDevice As LPCWSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEW, ByVal dwFlags As DWord)As BOOL
     1475#else
     1476Declare Function EnumDisplayDevices Lib "user32" Alias _FuncName_EnumDisplayDevices (ByVal lpDevice As LPCSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEA, ByVal dwFlags As DWord) As BOOL
     1477#endif
     1478#endif */ /* WINVER >= 0x0500 */
     1479#endif ' _INC_GDI
     1480
    14041481Const TME_HOVER       = &H00000001
    14051482Const TME_LEAVE       = &H00000002
     
    14291506Const TPM_RETURNCMD =    &H0100
    14301507Const TPM_RECURSE =      &H0001
    1431 Declare Function TrackPopupMenu Lib "user32" (hMenu As HMENU, uFlags As DWord, x As Long, y As Long, nReserved As Long, hWnd As HWND, ByRef prcRect As RECT) As BOOL
     1508Declare Function TrackPopupMenu Lib "user32" (hMenu As HMENU, uFlags As DWord, x As Long, y As Long, nReserved As Long, ByVal hWnd As HWND, ByRef prcRect As RECT) As BOOL
    14321509
    14331510declare function UnhookWindowsHookEx lib "user32" (ByVal hhk As HHOOK) As BOOL
Note: See TracChangeset for help on using the changeset viewer.