Results 1 to 3 of 3

Thread: API call to Restore Window

  1. #1

    Thread Starter
    Junior Member SysAdmin2's Avatar
    Join Date
    Mar 2000
    Location
    Plainfield, IL, USA
    Posts
    26

    Post

    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?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    You can use ShowWindow API and pass SW_RESTORE parameter.

    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
    Where lHwnd is a valid window handle.

  3. #3

    Thread Starter
    Junior Member SysAdmin2's Avatar
    Join Date
    Mar 2000
    Location
    Plainfield, IL, USA
    Posts
    26

    Post How do i get the hwnd?

    How do i get the hwnd?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width