Thread: menu's

  1. #1
    banging_head
    Guest

    menu's

    using msvc:
    okay i've been writing my rc scripts by hand and I thought I would try to use the resource editor for a change. I've made a menu and got a rc file but when i compile no res file appears and the menu dosent show up. im stumped!!!
    When you write them manually you do MyMenu MENU where MyMenu is your menu name, then when you define your window class you do wcl.lpszMenuName = "MyMenu"; which includes your menu. What do you put here when you've created it in the editor? The ID?
    Geez i fell like im going crazy.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Well you'll have it named like ID_MENU or something in the editor right? So you need to use a macro to convert it to an acceptable format.

    MAKEINTRESOURCE( ID_MENU );

    Try that and let me know.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 menus and resources help
    By firestorm in forum Windows Programming
    Replies: 24
    Last Post: 04-12-2005, 01:23 PM
  2. Creating pop up menus
    By Ti22 in forum C++ Programming
    Replies: 22
    Last Post: 01-18-2005, 09:27 PM
  3. help with menus example?
    By The Gweech in forum Windows Programming
    Replies: 3
    Last Post: 03-30-2004, 04:41 PM
  4. Menu's
    By Benzakhar in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2004, 10:13 PM
  5. adding menus at runtime
    By bennyandthejets in forum Windows Programming
    Replies: 3
    Last Post: 11-22-2002, 05:07 AM