VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Hide or show a window using the ShowWindow/CloseWindow API Calls

De Lucia Francesco  (1 Submission)   Windows API Call/Explanation   VB 6.0   Unknown Difficulty   Sat 5th October 2002   Mon 8th February 2021

Hide or show a window using the ShowWindow/CloseWindow API Calls

API Declarations


Public Const SW_ERASE = &H4
Public Const SW_HIDE = 0
Public Const SW_INVALIDATE = &H2
Public Const SW_MAX = 10
Public Const SW_MAXIMIZE = 3
Public Const SW_MINIMIZE = 6
Public Const SW_NORMAL = 1
Public Const SW_OTHERUNZOOM = 4
Public Const SW_OTHERZOOM = 2
Public Const SW_PARENTCLOSING = 1
Public Const SW_PARENTOPENING = 3
Public Const SW_RESTORE = 9
Public Const SW_SCROLLCHILDREN = &H1
Public Const SW_SHOW = 5
Public Const SW_SHOWDEFAULT = 10
Public Const SW_SHOWMAXIMIZED = 3
Public Const SW_SHOWMINIMIZED = 2
Public Const SW_SHOWMINNOACTIVE = 7
Public Const SW_SHOWNA = 8
Public Const SW_SHOWNOACTIVATE = 4
Public Const SW_SHOWNORMAL = 1

Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Public Declare Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long

Rate Hide or show a window using the ShowWindow/CloseWindow API Calls (1(1 Vote))
Hide or show a window using the ShowWindow/CloseWindow API Calls.bas

Hide or show a window using the ShowWindow/CloseWindow API Calls Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters