Results 1 to 3 of 3

Thread: minimizing another application

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    If you have the handle of a parent window, can you
    minimize, hide, and maxmize the application?

    I tried using SendMessage to do it but it did not work.

    Any suggestions anyone?
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2
    Guest
    Use the ShowWindow API function.


    Code:
    Private Const SW_HIDE = 0
    Private Const SW_MAXIMIZE = 3 
    Private Const SW_MINIMIZE = 6
    Private Const SW_RESTORE = 9
    Private Const SW_SHOW = 5
    Private Const SW_SHOWMAXIMIZED = 3
    Private Const SW_SHOWMINIMIZED = 2
    Private Const SW_SHOWMINNOACTIVE = 7
    Private Const SW_SHOWNA = 8
    Private Const SW_SHOWNOACTIVATE = 4
    Private Const SW_SHOWNORMAL = 1
    
    
    'Hide
    ShowWindow hWnd, SW_HIDE
    
    'Minimize
    ShowWindow hWnd, SW_MINIMIZE
    
    'Maximize
    ShowWindow hWnd, SW_MAXIMIZE

  3. #3

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    thank you,

    works great
    Bababooey
    Tatatoothy
    Mamamonkey

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