Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Having trouble getting Menu bar to show up

This topic is 6794 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''m trying to create a map editor and can''t seem to get my menu bar to show up, here is a snippet of the code and .rc file. Any help would be appreciated. winclass.cbSize = sizeof(WNDCLASSEX); winclass.style = CS_DBLCLKS / CS_OWNDC / CS_HREDRAW / CS_VREDRAW; winclass.lpfnWndProc = WindowProc; winclass.cbClsExtra = 0; winclass.cbWndExtra = 0; winclass.hInstance = hinstance; winclass.hIcon = LoadIcon(NULL, IDI_APPLICATION); winclass.hCursor = LoadCursor(NULL, IDC_ARROW); winclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); winclass.lpszMenuName = "MainMenu"; winclass.lpszClassName = WINDOW_CLASS_NAME; winclass.hIconSm = LoadIcon(NULL, IDI_APPLICATION); *******.rc file #include "gyraRes.h" ///////////////////////////////////////////////////////////////////////////// // // Menu // MainMenu MENU DISCARDABLE { POPUP "File" { MENUITEM "Open", MENU_FILE_ID_OPEN MENUITEM "Close", MENU_FILE_ID_CLOSE } }

Share this post

Link to post
Share on other sites
I am not certain, as I do not have a reference in front of me, but I think it goes something like LoadMenu("MainMenu"). I have a program that uses it... if you want me to tell you for sure, email me and I will get back to you with some actual working code


You are not a real programmer until you end all your sentences with semicolons;


Share this post

Link to post
Share on other sites

  • 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!