Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to catch a (registered) Message comming from other application
How to catch a (registered) Message comming from other application [message #40210] |
Wed, 03 July 2013 12:47 |
alex100
Messages: 118 Registered: November 2007
|
Experienced Member |
|
|
Hi
I am trying to communicate among applications using windows messages. I do the x=RegisterWindowMessage("XYZ") in both applications.
On one application I do
SendMessage(HWND_BROADCAST, x,(WPARAM)GetHWND(), 0);
and then I want to wait for the response. How to wait for an external windows Message?
I tried this but never takes place:
LRESULT CALLBACK SKTESTE::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
PromptOK("Hit!");
if(message==x)
{
PromptOK("x message arriving");
return 1;
}
DefWindowProc(hWnd, message, wParam, lParam);
}
Thanks a lot
Alex
|
|
|
Goto Forum:
Current Time: Wed May 08 04:20:27 CEST 2024
Total time taken to generate the page: 0.01801 seconds
|