Article View: borland.public.cppbuilder.nativeapi
Article #16806Re: PostMessage() with HWND_BROADCAST not working.
From: Jeff Douglass
Date: Thu, 24 Apr 2003 18:06
Date: Thu, 24 Apr 2003 18:06
32 lines
1962 bytes
1962 bytes
I am trying to use the broadcast option so in case at a later point in time I need to perform some added processing from any number of different windows the hook is already there. The message is simply defined as #define THE_MESSAGE (WM_USER + 3332) At the end of the initializtion routine that handles all the app's initialization I call: PostMessage(HWND_BROADCAST, THE_MESSAGE,0,0); The startup window is created and shown as follows: Application->Initialize() ; startupwindow->Show(); startupwindow->Update(); the call to the app's initialization routine. The only thing I can think is the problem is that the startup window is not a "top level window" The MS documentation of PostMessage says that the broadcast option send the message to all "top level windows" but not child windows. I can not find an exact definition of what makes a window a "top level window". My app is a SDI app so there are no child windows. Hope this info helps answer the problem. Thanks again Jeff
Technical Details
Message-ID:
<3ea8274c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ea817c4@newsgroups.borland.com> <3ea8221a$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a275b46d2460f43e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-24 11:09:27 PST From: "Jeff Douglass" <.> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ea817c4@newsgroups.borland.com> <3ea8221a$3@newsgroups.borland.com> Subject: Re: PostMessage() with HWND_BROADCAST not working. Date: Thu, 24 Apr 2003 11:06:04 -0700 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 68.2.177.21 Message-ID: <3ea8274c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051207500 68.2.177.21 (24 Apr 2003 11:05:00 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail