Another Menu Event Problem (VISUAL C++)

Ok, I have this menu resource IDM_MYMENU with IDM_FILE_EXIT and IDM_HELP_ABOUT

It is in the .rc file in the visual studio 2008 project, and when I compile the project and run it, the window has the menu. But I'm confused as to how to handle the messages sent when, for example, IDM_FILE_EXIT is clicked.

Thanks.
Solved myself.

1
2
3
4
5
6
7
8
{
	case WM_COMMAND:      // Windows command. Find out more.
    switch( wParam )
    {
	case IDM_FILE_EXIT:   // File Exit menu command.
        PostQuitMessage(WM_QUIT);
        break;
    }
Topic archived. No new replies allowed.