1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Enum GET_WINDOW_LONG_FLAG
GWL_STYLE = -16
End Enum
const WS_MINIMIZE = &H20000000
Const WS_MAXIMIZE = &H1000000
Declare Function usrGetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As GET_WINDOW_LONG_FLAG) As Long
Public Function IsFormMax(hWnd as Long) as boolean
IsFormMax=((usrgetwindowlong(hwnd, GWL_STYLE) And WS_MAXIMIZE)=WS_MAXIMIZE)
End Function
Public Function IsFormMin(hWnd as long) as boolean
IsFormMin=((usrgetwindowlong(hwnd,GW_STYLE) AND WS_MINIMIZE)=WS_MINIMIZE)
End function |
Partager