CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Hwnd_topmost

  1. #1
    Join Date
    Jun 2001
    Posts
    145

    Hwnd_topmost

    Hello,

    How do I identify if a window has HWND_TOPMOST set ?

    (set using setwindowpos( hWnd, HWND_TOPMOST, ....) )

    I tried

    Code:
    ULONG u = GetWindowLong (hWnd, GWL_EXSTYLE);
    
    if (u & WS_EX_TOPMOST)  
    {
       bhWndTopMost = true;
    }
    but that doesn't seem to be helping.

    thanks in advance.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Hwnd_topmost

    Quote Originally Posted by Gamut View Post
    but that doesn't seem to be helping.

    thanks in advance.
    Why not? What is the problem?
    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: Hwnd_topmost

    Probably...
    Quote Originally Posted by Gamut View Post
    setwindowpos
    ... doesn't help.
    You have to try SetWindowPos.

    Plese note that, in C/C++ the identifiers (including function names) are case sensitive.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  4. #4
    Join Date
    Jun 2001
    Posts
    145

    Re: Hwnd_topmost

    victor
    It was working..I didn't realize that i was setting HWND_NOTOPMOST somewhere else in the code ( and it was getting executed).

    Sorry abt that. I was blind.

    ovicidccu..I was doing SetWindowPos , but was in a hurry and typed in lower case.

    Thanks guys.

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

Featured