CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Menus and such

  1. #1
    Join Date
    May 1999
    Posts
    4

    Menus and such

    I'm trying to create a program with a LARGE amount of menus(the kind that are on top of the screen, not pop-ups) that have checked menu choices. I created the menu-choice, clicked on the "Checked" box in the properties, but when I run the prog, the menu choices all start off checked and they will not change. I probably need some extra initialization code, I just don't know what it is. It's a dialog based program with (currently) 3 dialog boxes. If you could help, it'd be much appreciated.

    Cmdr. Derek 'Scythe' Celsen
    CO 1st covert squadron, Zeus.

  2. #2
    Join Date
    May 1999
    Posts
    128

    Re: Menus and such

    to change a menu item's state, e.g. from checked to not-checked, you need a command update handler -- run Classwizard and select a menu item command id and add a handler for UPDATE_COMMAND_UI. then in your handler you decide whether you want to display it checked or not using code like this...


    if (<show checked&gt
    pCmdUI->SetCheck(1);
    else
    pCmdUI->SetCheck(0);





  3. #3
    Join Date
    May 1999
    Posts
    4

    Re: Menus and such

    Thanks, but I"m not quite sure about some of the things I do with that. ie: There's parts of it I have to replace with my own variables, but what are they? THanks

    Cmdr. Derek 'Scythe' Celsen
    CO 1st covert squadron, Zeus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured