From: Jan D. <ja...@ac...> - 2007-07-30 07:46:34
|
On Sun, 29 Jul 2007, Robert May wrote: > On 29/07/07, Jan Dubois <ja...@ac...> wrote: > > PS: Please let me know if you happen to know a mechanism to create a > > message-only window on 98/NT (a window that is not top-level and > > will not receive broadcast messages). If this were possible, > > then we could get rid of PostThreadMessage() completely. > > I can't speak for WinNT, as I don't have it available, but on Win98, > using HWD_MESSAGE as the parent window to CreateWindowEx() appears to > work fine (despite what MSDN says). Using it I end up with a window > that is a child of a hidden system window. The window is not top > level, not visible, and I can't make it receive a broadcast message. I've seen at least anecdotal evidence that using HWND_MESSAGE on 98 might be somewhat dangerous: http://www.virtualdub.org/blog/pivot/entry.php?id=153 So I'm not sure if we want to ignore MSDN on this point. Cheers, -Jan |