Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani25-Dec-08 7:13
professionalRavi Bhavnani25-Dec-08 7:13 
AnswerRe: Check if HWND is @ top of Z order Pin
Code-o-mat25-Dec-08 10:07
Code-o-mat25-Dec-08 10:07 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani25-Dec-08 10:56
professionalRavi Bhavnani25-Dec-08 10:56 
GeneralRe: Check if HWND is @ top of Z order Pin
Code-o-mat25-Dec-08 11:31
Code-o-mat25-Dec-08 11:31 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani25-Dec-08 12:29
professionalRavi Bhavnani25-Dec-08 12:29 
GeneralRe: Check if HWND is @ top of Z order Pin
Code-o-mat25-Dec-08 22:25
Code-o-mat25-Dec-08 22:25 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani26-Dec-08 9:56
professionalRavi Bhavnani26-Dec-08 9:56 
GeneralRe: Check if HWND is @ top of Z order Pin
Stuart Dootson25-Dec-08 22:45
professionalStuart Dootson25-Dec-08 22:45 
Ravi Bhavnani wrote:
No, because you can have several "always on top" windows (each belonging to a different app).


But IIRC, the active apps windows will be at the front? So something like GetTopWindow(GetForegroundWindow()); should do? You'd need to check if the result of GetTopWindow was NULL, as that indicates a window with no child windows, so you would use the result of GetForegroundWindow instead.

HWND foreground = GetForegroundWindow();
HWND top = GetTopWindow(foreground);
top = top?top:foreground;

AnswerRe: Check if HWND is @ top of Z order Pin
Malli_S25-Dec-08 20:13
Malli_S25-Dec-08 20:13 
QuestionLong Running Program Pin
BobInNJ24-Dec-08 16:25
BobInNJ24-Dec-08 16:25 
AnswerRe: Long Running Program Pin
Liu Xia24-Dec-08 17:22
Liu Xia24-Dec-08 17:22 
AnswerRe: Long Running Program Pin
Ravi Bhavnani24-Dec-08 18:42
professionalRavi Bhavnani24-Dec-08 18:42 
AnswerRe: Long Running Program Pin
dehseth25-Dec-08 19:08
dehseth25-Dec-08 19:08 
GeneralRe: Long Running Program Pin
Ravi Bhavnani26-Dec-08 11:35
professionalRavi Bhavnani26-Dec-08 11:35 
QuestionNeed help for numericupdwon Pin
sai5624-Dec-08 15:34
sai5624-Dec-08 15:34 
AnswerRe: Need help for numericupdwon Pin
Code-o-mat25-Dec-08 6:52
Code-o-mat25-Dec-08 6:52 
QuestionHow to write assignment operator for a class with constant member variable? Pin
ComplexLifeForm24-Dec-08 8:07
ComplexLifeForm24-Dec-08 8:07 
AnswerRe: How to write assignment operator for a class with constant member variable? Pin
Code-o-mat24-Dec-08 9:13
Code-o-mat24-Dec-08 9:13 
AnswerRe: How to write assignment operator for a class with constant member variable? Pin
Stuart Dootson24-Dec-08 13:15
professionalStuart Dootson24-Dec-08 13:15 
GeneralRe: How to write assignment operator for a class with constant member variable? Pin
ComplexLifeForm25-Dec-08 4:54
ComplexLifeForm25-Dec-08 4:54 
QuestionImage problem ? Pin
Le@rner24-Dec-08 0:24
Le@rner24-Dec-08 0:24 
AnswerRe: Image problem ? Pin
Naveen24-Dec-08 0:34
Naveen24-Dec-08 0:34 
GeneralRe: Image problem ? Pin
Le@rner24-Dec-08 0:42
Le@rner24-Dec-08 0:42 
GeneralRe: Image problem ? Pin
Naveen24-Dec-08 0:48
Naveen24-Dec-08 0:48 
GeneralRe: Image problem ? Pin
Hamid_RT24-Dec-08 0:51
Hamid_RT24-Dec-08 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.