menu item disable/enable mfc vc++

  • Thread starter Thread starter VickyCool4U
  • Start date Start date
V

VickyCool4U

Guest
Hi Experts,


I am working on visual studio 2010 MFC VC++ application.

Using ON_UPDATE_COMMAND_UI() , pCmdUI->Enable(bEnableState) enable/disable a menu item by using TRUE/FALSE for bENableState variable. But I would like to display grey icon in front of menu item when it is disable and normal icon when it is enabled.
I tried SetMenuItemBitmaps(ID_NEW,MF_BITMAP|MF_BYCOMMAND,ConvertIconToBitmap(hIcon),ConvertIconToBitmap(hIcon1));

But it is displaying menu icon with enable state.
Is it possible to disable/enable a menu item with grey/normal icon ?

Continue reading...
 

Similar threads

V
Replies
0
Views
185
VickyCool4U
V
V
Replies
0
Views
187
VickyCool4U
V
V
Replies
0
Views
108
VickyCool4U
V
S
Replies
0
Views
177
Stan Huang at Taiwan
S
Back
Top