A simple VC++ MFC quiz! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

A simple VC++ MFC quiz!

In Win32 you use a specific function that checks the WM_xxx messages,

(I don't remember the syntax)
int CALLBACK WinProc( MSG msg, ....)
case WM_CHAR

hope you understand it!

but how does it works in VC++6 and ofcourse then I mean in MFC.

Help me!


  • dalaptopdalaptop Posts: 90Member
    If what you mean is that you want MFC to handle your messages, then you need to setup message handlers. In your header file, declare: DECLARE_MESSAGE_MAP() and make sure it is protected in your class. then in your cpp file, include:


    this will execute MyMessage(), everytime a WM_MYMESSAGE is received by the window. I hope this is what your wondering. Any questions, email me: dalaptop@hotmail.com.


Sign In or Register to comment.