CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    8

    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


  2. #2
    Join Date
    May 1999
    Posts
    8

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured