Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: "ultranet" <ultranet@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 25 Aug 2005 17:11:02 -0700
"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.
.
- Follow-Ups:
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: Joseph M . Newcomer
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- References:
- Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- RE: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- RE: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: Joe Butler
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: Joseph M . Newcomer
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: Joseph M . Newcomer
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: ultranet
- Re: Finding 3rd-party child window/button state (enabled/disabled)
- From: Tom Serface
- Finding 3rd-party child window/button state (enabled/disabled)
- Prev by Date: Re: Finding 3rd-party child window/button state (enabled/disabled)
- Next by Date: Re: Finding 3rd-party child window/button state (enabled/disabled)
- Previous by thread: Re: Finding 3rd-party child window/button state (enabled/disabled)
- Next by thread: Re: Finding 3rd-party child window/button state (enabled/disabled)
- Index(es):
Relevant Pages
|