Hwnd_topmost
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
    Wallisellen (ZH), Switzerland
    Posts
    17,011

    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
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    7,994

    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 Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

  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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center