Re: Is EnableWindow(HWND, BOOL) thread safe ?
- From: "William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx>
- Date: Tue, 3 Jan 2006 14:05:54 -0500
"Mike J" <notvalid@xxxxxxxxx> wrote in message
news:%23CxDp0EEGHA.3200@xxxxxxxxxxxxxxxxxxxxxxx
> Does these API block the thread ?
> ChildWindowFromPoint(HWND, POINT)
> IsWindowEnabled(HWND)
I don't know. My guess would have been 'no' for both but in scanning the
documentation for ChildWindowFromPoint(), there is a discussion of how it
treats transparent portions of a window. It may be that Windows is sending
WM_NCHITTEST messages to windows surrounding the point. If that's so, you
could block on a send. You might want to run Spy++.
> Suppose they are blocked, and I use PostMessage, but I still need to wait
> to get the state of the Window. Or let the HWND's thread manages its own
> state, and PostMessage back to the calling thread.
Check the docs for SendMessageCallback() to see if it would help you.
Just by the way, you might want to start a new thread in a UI group, e.g.
microsoft.public.win32.programmer.ui
with a question on what you want to do and not how to do. That is often a
way to get the best advice.
Regards,
Will
.
- Follow-Ups:
- Re: Is EnableWindow(HWND, BOOL) thread safe ?
- From: Mike J
- Re: Is EnableWindow(HWND, BOOL) thread safe ?
- References:
- Is EnableWindow(HWND, BOOL) thread safe ?
- From: Mike J
- Re: Is EnableWindow(HWND, BOOL) thread safe ?
- From: William DePalo [MVP VC++]
- Re: Is EnableWindow(HWND, BOOL) thread safe ?
- From: Mike J
- Re: Is EnableWindow(HWND, BOOL) thread safe ?
- From: Scott McPhillips [MVP]
- Re: Is EnableWindow(HWND, BOOL) thread safe ?
- From: Mike J
- Is EnableWindow(HWND, BOOL) thread safe ?
- Prev by Date: Re: Data loss appending data to file
- Next by Date: Re: Generating a random sequence of alpha-numeric characters.
- Previous by thread: Re: Is EnableWindow(HWND, BOOL) thread safe ?
- Next by thread: Re: Is EnableWindow(HWND, BOOL) thread safe ?
- Index(es):
Relevant Pages
|