
handling user-defined messages (WM_USER) with message maps
Quote:
>Can I just add a messagemap entry..
>ON_MESSAGE( WM_USER, OnWmUser )
Don't use WM_USER, the system itself uses messages in the low WM_USER
range for dialogs (I know, dumb isn't it). Use WM_APP. Better still
use RegisterWindowMessage and ON_REGISTERED_MESSAGE.
Quote:
>define my message map function in header file
>afx_msg void OnWmUser();
You need to follow the correct format for a message handler, with an
LRESULT, a WPARAM and an LPARAM. This is documented in the help on
user defined handlers.
--
Bob Moore [MVP]
http://www.mooremvp.freeserve.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due to an unreasonable amount of queries, I no
longer answer unsolicited email questions. Sorry,
no exceptions, and yes, this DOES mean you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~