Article View: borland.public.cppbuilder.nativeapi
Article #6028Re: HWND_BROADCAST doesn�t work!
From: Alexandre S�
Date: Mon, 20 Jun 2005 13:12
Date: Mon, 20 Jun 2005 13:12
27 lines
2303 bytes
2303 bytes
> You are not getting a window that is capable of receiving > HWND_BROADCAST That�s not the question... Here is the solution/explanation by Peter Below (TeamB): > Whether this works depends on your Windows platform. The docs are not > quite clear about it, but you have to use a message ID obtained from > RegisterWindowMessage for a broadcast message. Only a subset of the > predefined messages (e.g. WM_DEVICECHANGE, WM_SETTINGSCHANGE) seem to > be allowed for broadcasting, at least on Win2K and XP. That is a Good > Thing, too. Consider what a PostMessage(HWND_BROADCAST, WM_SYSCOMMAND, > SC_CLOSE, 0) would do if it worked... (Warning! I did not test whether > it actually does work <g>). But still remain the question: why on a different IDE (Borland C++ anyway) it works without register the broadcast message? That�s why the problem arises... I had to migrate a Borland C++ project to the Borland C++ Builder 6 (a Delphi like IDE) and on such "Delphi like IDE" it�s necessary to register the broadcast message (like it have to be). So... would you mind why I don�t need to register the broadcast message on that IDE from where the project became? Best regards, Alexandre S�
Technical Details
Message-ID:
<42b6c0f1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b30d0a$1@newsgroups.borland.com> <42b317d0$1@newsgroups.borland.com> <42b31b9a@newsgroups.borland.com> <42b3322d$1@newsgroups.borland.com> <42b34cfc$1@newsgroups.borland.com> <cjj6b1hc3t1tjnju46lto298h1h7k3bjvg@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,af4f253f03c4e6fb X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Alexandre S�" <alexandre@daccord.com.br> Newsgroups: borland.public.cppbuilder.nativeapi References: <42b30d0a$1@newsgroups.borland.com> <42b317d0$1@newsgroups.borland.com> <42b31b9a@newsgroups.borland.com> <42b3322d$1@newsgroups.borland.com> <42b34cfc$1@newsgroups.borland.com> <cjj6b1hc3t1tjnju46lto298h1h7k3bjvg@4ax.com> Subject: Re: HWND_BROADCAST doesn�t work! Date: Mon, 20 Jun 2005 10:12:30 -0300 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 200.249.236.130 Message-ID: <42b6c0f1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119273201 200.249.236.130 (20 Jun 2005 06:13:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail