I have made a small program with a menu.
In my winproc I thought it would be a good idea to call a function when an menu-option is selected, like this:
The function looks like this for the moment:Code:switch(LOWORD(wParam)) { case MENU_FILE_ID_NEW: { menuFileNew(); }break; ...
The problem is that after the function is executed, the program exits... is there something I have missed?Code:void menuFileNew() { MessageBox(NULL, "You selected NEW...", "Your choice", MB_OK); }