Discussion:
disabling menu item
(too old to reply)
Z.K.
2007-03-01 17:26:39 UTC
Permalink
I was wondering how I disable a menu item in a formview project. I set
Enabled to False and Grayed to true and though it looks fine in the menu
designer, when I run the program it still works like usual.

Z.K.
David Lowndes
2007-03-01 20:20:55 UTC
Permalink
Post by Z.K.
I was wondering how I disable a menu item in a formview project. I set
Enabled to False and Grayed to true and though it looks fine in the menu
designer, when I run the program it still works like usual.
Open your menu in the resource editor and add update handlers for the
items you want to enable/disable and write the appropriate logic in
those ON_UPDATE_COMMAND_UI handlers.

Dave

Loading...