Advertisement Jump to content
Sign in to follow this  

C++ , Win32 Programming

This topic is 4561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a problem with Resource Editor. The problem is How can I check when I press Menu File->Exit? I used resource Editor and Made a menu with Menu File and Exit inside File menu. So I give Exit as ID_FILE_EXIT and I didn't check and pop up button. After I did all these. I went back to my code main.cpp and looked at the message Handle (WndProc). And I put new Message WM_COMMAND : and check for ID_FILE_EXIT Heres the code: case WM_COMMAND: if(wParam == ID_FILE_EXIT) PostQuitMessage(0); break; I did all of these. But When I compiled it and excuted it. I pressed the file->exit menu and nothing happen. So I dont understand How to work with Resource Editor but I can load the menu with LoadMenu(hInstance,MAKEINTRESOURCE(IDR_MENU));

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!