Article View: borland.public.cppbuilder.nativeapi
Article #6002HWND_BROADCAST doesn�t work!
From: Alexandre S�
Date: Fri, 17 Jun 2005 17:48
Date: Fri, 17 Jun 2005 17:48
26 lines
1605 bytes
1605 bytes
Hi there... the problem is simple to understand...
Let the code:
//create any window class (WNDCLASS)
...some code...;
//create any window (CreateWindow)
...some code...;
//send a broadcast message
PostMessage(HWND_BROADCAST, WM_USER, 0, 0L);
//peek that message
if(PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) {
//the message was peeked
MessageBox(NULL, "Work!", "", MB_OK);
} else {
//the message was not peeked
MessageBox(NULL, "Don�t work!", "", MB_OK);
}
Why on Borland C++ it works (i.e. the broadcast message is peeked)
and why on BCB6 it doesn�t work (i.e. the broadcast message is not
peeked)???
Best regards,
Alexandre S�
Technical Details
Message-ID:
<42b30d0a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,af4f253f03c4e6fb,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Alexandre S�" <alexandre@daccord.com.br> Newsgroups: borland.public.cppbuilder.nativeapi Subject: HWND_BROADCAST doesn�t work! Date: Fri, 17 Jun 2005 14:48:15 -0300 Lines: 28 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: <42b30d0a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119030538 200.249.236.130 (17 Jun 2005 10:48:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail