Click to See Complete Forum and Search --> : VB not receiving windows message


sb1423ul
September 20th, 2001, 07:21 AM
Hi,

I try to make send message to VB using the Windows message loop. I have redefine a new set of messages using the WINAPI. I'm not able to receive a message send to HWND_BROADCAST but only to the specific Window handle.

I'm wondering if the VB application is declare as a Top level windows? Does somebody know? In MSDN, I can find this documentation with PostMessage :

HWND_BROADCAST
The message is posted to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows. The message is not posted to child windows.

Can I make the VB application Windows a Top-Level Window or do somebody has a trick to make this broadcast message working?

Thanks,

Stephane