Click to See Complete Forum and Search --> : Get/send a window message without using MFC Messages_MAP


sayoyo
May 11th, 1999, 02:52 PM
Hi,

I would like to create some window controls dynamically, and the program have no idea which control
will be create and when it have to create the control. So i can not hard code the window messages in
the MFC messages_map, I have to get the message at runtime and send it to the right controls. Actually
i have no idea how to do it. Please help.

Thanks

PChetan
May 11th, 1999, 03:37 PM
Hi,
You can overload DefWindowProc() function for the window for which you want to receive messages. In this function you can do your own message handling.

I hope this answer will help you.

Thanks

Nothing is impossible.