Results 1 to 5 of 5

Thread: Get Window State

  1. #1

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Anyone know how to get the Window state? Like if the window is minimized or hidden?
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  2. #2
    Lively Member rekcus's Avatar
    Join Date
    Jan 1999
    Location
    Kuala Lumpur
    Posts
    122
    Use this

    Code:
    LONG GetWindowLong(
      HWND hWnd,  // handle to window
      int nIndex  // offset of value to retrieve
    );
    penyou!

    "The code bytes.."

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Or
    Code:
    IsWindowVisible
    The IsWindowVisible function retrieves the visibility state of the specified window. 
    
    BOOL IsWindowVisible(
      HWND hWnd   // handle to window
    );
     
    Parameters
    hWnd 
    Handle to the window to test. 
    Return Values
    If the specified window and its parent window have the WS_VISIBLE style, the return value is nonzero.
    
    If the specified window and its parent window do not have the WS_VISIBLE style, the return value is zero. Because the return value specifies whether the window has the WS_VISIBLE style, it may be nonzero even if the window is totally obscured by other windows. 
    
    ------------------------------------------------------------------
    
    The IsZoomed function determines whether a window is maximized. 
    
    BOOL IsZoomed(
      HWND hWnd   // handle to window
    );
     
    Parameters
    hWnd 
    Handle to the window to test. 
    Return Values
    If the window is zoomed, the return value is nonzero.
    
    If the window is not zoomed, the return value is zero.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    thanks guys I will give it a shot
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  5. #5
    Guest
    The IsIconic function will determine whether it's minimized or not.

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