|
|
Окно приложения MS Access - Разворачиваем во весь экран (API x64+)
Public Const SW_HIDE = 0
Public Const SW_MINIMIZE = 6
Public Const SW_RESTORE = 9
Public Const SW_SHOW = 5
Public Const SW_MAXIMIZE = 3
Public Const SW_SHOWMAXIMIZED = 3
Public Const SW_SHOWMINIMIZED = 2
Public Const SW_SHOWMINNOACTIVE = 4
Public Const SW_SHOWNA = 8
Public Const SW_SHOWNOACTIVATE = 7
Public Const SW_SHOWNORMAL = 1
Public Declare PtrSafe Function apiShowWindow Lib "User32" _
Alias "ShowWindow" (ByVal hWnd As Long, _
ByVal nCmdShow As Long) As Long
Public Function fSetWindow(nHwnd As Long, nCmdShow As Long) As Long
On Error GoTo Err_fSetWindow
fSetWindow = apiShowWindow(nHwnd, nCmdShow)
Exit_fSetWindow:
Exit Function
Err_fSetWindow:
MsgBox Err.Description
Resume Exit_fSetWindow
End Function
|
|