Message 1 of 2
How to handle WM_USER messages from ARX applications?
Not applicable
01-08-2002
12:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am writing an application where I need to handle WM_USER messages that are
sent from a docking bar when user double-click on it. I did the following:
1) Registered a function to watch Windows messages:
acedRegisterWatchWinMsg(WatchMessages);
The function looks like this:
void WatchMessages(const MSG *pMsg)
{
if (pMsg->message == (WM_USER + 101))
{
AfxMessageBox("WM_USER message + 101");
}
}
When I try to handle WM_KEYDOWN or WM_KEYUP, for example, it works, but with
WM_USER, it doesn´t.
Does anybody know why?
Thank in advance,
Vinicius
I am writing an application where I need to handle WM_USER messages that are
sent from a docking bar when user double-click on it. I did the following:
1) Registered a function to watch Windows messages:
acedRegisterWatchWinMsg(WatchMessages);
The function looks like this:
void WatchMessages(const MSG *pMsg)
{
if (pMsg->message == (WM_USER + 101))
{
AfxMessageBox("WM_USER message + 101");
}
}
When I try to handle WM_KEYDOWN or WM_KEYUP, for example, it works, but with
WM_USER, it doesn´t.
Does anybody know why?
Thank in advance,
Vinicius