Results 1 to 2 of 2

Thread: Checking for Window Styles

  1. #1
    amac
    Guest

    Checking for Window Styles

    How can I check to see if a window has the WS_DISABLED style...

    I know about the GetStyle() which returns a DWORD, but what I am not sure about is how to tell if a specific style is being used.

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I think you can use something like this:
    PHP Code:
    if(GetWindowLong(HWND,GWL_STYLE) & WS_DISABLED)
    //window is disabled 
    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

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