Get/send a window message without using MFC Messages_MAP
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
Re: Get/send a window message without using MFC Messages_MAP
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.