Thread: hiding windows

  1. #1
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125

    hiding windows

    how can i hide and show only the windows that are on screen and in the systray on command other then the desktop.
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    try this,

    BOOL ShowWindow(
    HWND hWnd,
    int nCmdShow
    );

    SW_FORCEMINIMIZE - Windows NT 5.0 and later: Minimizes a window, even if the thread that owns the window is hung. This flag should only be used when minimizing windows from a different thread.
    SW_HIDE - Hides the window and activates another window.
    SW_SHOW - Activates the window and displays it in its current size and position.
    SW_SHOWNA - Displays the window in its current state. The active window remains active.
    SW_SHOWNORMAL - Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    uh thanks but what i was asking is how I can find out which windows are visible and then once they are hiddern to be able to only show the windows it hid
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 08:05 AM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM