Re: Finding 3rd-party child window/button state (enabled/disabled)





"Tom Serface" wrote:

> The intersection idea makes more sense to me. You could get the client
> window rectangles and see if any are overlapping. If you never want it to
> be overlapped you could make it a topmost window.
>
> Tom
Yes, i guess i could check for intersections on all windows returned by
GetNextWindow.

The next big problem, however, is that i'm having difficulty telling this
window to show in foreground from the callback, which happens on the main
thread.

I tried
while (::PeekMessage(&message, NULL, 0, 0, PM_REMOVE)) {
cout << "got message" << endl;
::TranslateMessage(&message);
::DispatchMessage(&message);
}
but never get any printouts from this block.
I also tried
Sleep(2000);
after the while, which also doesn't help.

I used idl's Show method. I'll try Win32 show now.
.



Relevant Pages

  • Re: Finding 3rd-party child window/button state (enabled/disabled)
    ... The intersection idea makes more sense to me. ... window rectangles and see if any are overlapping. ...
    (microsoft.public.vc.mfc)
  • Find DesktopRegion in MFC VC++
    ... Drag the main window to the second ... home have the second monitor on the opposite side, ... and an intersection of any particular window done. ... How do I go about getting that region in MFC, and how do I ask the ...
    (microsoft.public.vc.language)
  • Finding Desktop region in MFC
    ... Drag the main window to the second ... home have the second monitor on the opposite side, ... and an intersection of any particular window done. ... How do I go about getting that region in MFC, and how do I ask the ...
    (microsoft.public.vc.mfc)
  • Re: Find DesktopRegion in MFC VC++
    ... >with an external monitor. ... Drag the main window to the second ... and an intersection of any particular window done. ... >How do I go about getting that region in MFC, and how do I ask the ...
    (microsoft.public.vc.language)
  • Re: Finding Desktop region in MFC
    ... Drag the main window to the second ... >home have the second monitor on the opposite side, ... and an intersection of any particular window done. ... >How do I go about getting that region in MFC, and how do I ask the ...
    (microsoft.public.vc.mfc)