none
GetWindowInfo -

    Question

  • Sup guys,

    When you do retrieve a window's information using GetWindowInfo, how do you check to see if a window has the style WS_OVERLAPPED?

    Thanks.
    Friday, January 18, 2008 10:02 PM

All replies

  • WINDOWINFO info;
    info.cbSize = sizeof(WINDOWINFO);
    if (!GetWindowInfo(hwnd, &info))
    {
    	//error
    }
    bool overlapped = (info.dwStyle & WS_OVERLAPPED) == WS_OVERLAPPED;
    • Edited by ildjarn Friday, August 05, 2011 8:16 PM
    Friday, January 18, 2008 11:16 PM
  • Hmm, should the following return true if a window has the style WS_OVERLAPPED? -

    [code]
    ...
    {your code here}
    if(overlapped == true)
    {

    ...

    }
    ...
    [/code]

    Thanks.
    Saturday, January 19, 2008 2:57 PM