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

Thread: Menu bar

  1. #1
    Join Date
    Nov 2003
    Location
    german
    Posts
    178

    Menu bar

    hi all
    How i change the item text of menu item after click of that menu item ?

  2. #2
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    By calling ModifyMenu().

  3. #3
    Join Date
    Jan 2004
    Location
    Punjab, India
    Posts
    113
    Though not tried, check out by updating the command string of the menu ID. Use ON_UPDATE_COMMANDUI hadlers

  4. #4
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    Originally posted by Amit Sebiz
    Though not tried, check out by updating the command string of the menu ID. Use ON_UPDATE_COMMANDUI hadlers
    Yes, that works (by calling pCmdUI->SetText) - but only with MFC. The OP didn't specify whether he/she used MFC or plain Win32 SDK.

  5. #5
    Join Date
    Nov 2003
    Location
    german
    Posts
    178
    thanks for help

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