I am shelling Microsoft Internet Explorer for vb5. This works fine. My problem is that I don't know how to restore the window if the user minimizes it. What are the API calls I need?
Printable View
I am shelling Microsoft Internet Explorer for vb5. This works fine. My problem is that I don't know how to restore the window if the user minimizes it. What are the API calls I need?
You can use ShowWindow API and pass SW_RESTORE parameter.
Where lHwnd is a valid window handle.Code:Private Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const SW_RESTORE = 9
Private Sub Form1_Load()
Call ShowWindow(lHwnd, SW_RESTORE)
End Sub
How do i get the hwnd?