Jump to content
  • Advertisement
Sign in to follow this  
As-12

C++ , Win32 Programming

This topic is 4469 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!