-
April 2nd, 2011, 09:56 AM
#1
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.
-
April 2nd, 2011, 04:41 PM
#2
Re: Hwnd_topmost
Originally Posted by Gamut
but that doesn't seem to be helping.
thanks in advance.
Why not? What is the problem?
Victor Nijegorodov
-
April 4th, 2011, 03:54 PM
#3
Re: Hwnd_topmost
Probably...
Originally Posted by Gamut
setwindowpos
... doesn't help.
You have to try SetWindowPos.
Plese note that, in C/C++ the identifiers (including function names) are case sensitive.
-
April 4th, 2011, 06:19 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|