Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to add menu in dialog box

khojakhoja Member Posts: 2
how to add menu resource to dialog boxes

Comments

  • CHRIS_swdevCHRIS_swdev Member Posts: 16
    Click on your resources tab
    Right click on "your project name" resources
    Click insert
    Click menu
    Click New
    Edit your newly created menu

    Open up the dialog that you want the menu on.
    right click on the dialog and go to properties
    On the properties screen there should be a menu drop down
    select the one you just created in the drop down

    now run the program, the menu should be on your dialog.

    Have fun
    ~Chris
  • CHRIS_swdevCHRIS_swdev Member Posts: 16
    After you add the menu I know your going to be like how do I get it to do stuff.

    Basically after you created all of your menu
    Go into the class wizard
    Click on Message Maps
    Select your object under object ID's
    after that under messages command should appear
    double click on that
    click ok
    then look for the function that you just created in your *dlg.cpp

    that should be enough!
    ~chris
  • khojakhoja Member Posts: 2

    dear chris
    thanks for reply . i try to use ur method then contact with u if have problem .

    aamir ali


    : After you add the menu I know your going to be like how do I get it to do stuff.
    :
    : Basically after you created all of your menu
    : Go into the class wizard
    : Click on Message Maps
    : Select your object under object ID's
    : after that under messages command should appear
    : double click on that
    : click ok
    : then look for the function that you just created in your *dlg.cpp
    :
    : that should be enough!
    : ~chris
    :

Sign In or Register to comment.