Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About Progress Control (MFC) Pin
jcpooh5-Jun-03 16:00
jcpooh5-Jun-03 16:00 
GeneralRe: About Progress Control (MFC) Pin
FlyingDancer5-Jun-03 16:37
FlyingDancer5-Jun-03 16:37 
GeneralRe: About Progress Control (MFC) Pin
jcpooh5-Jun-03 16:58
jcpooh5-Jun-03 16:58 
GeneralRe: About Progress Control (MFC) Pin
FlyingDancer5-Jun-03 17:22
FlyingDancer5-Jun-03 17:22 
GeneralRe: About Progress Control (MFC) Pin
jcpooh5-Jun-03 18:26
jcpooh5-Jun-03 18:26 
GeneralSubmenu MF_GREYOUT and MF_ENABLE Pin
adonisv5-Jun-03 11:55
adonisv5-Jun-03 11:55 
GeneralRe: Submenu MF_GREYOUT and MF_ENABLE Pin
Michael Dunn5-Jun-03 15:01
sitebuilderMichael Dunn5-Jun-03 15:01 
GeneralRe: Submenu MF_GREYOUT and MF_ENABLE Pin
Toni785-Jun-03 21:34
Toni785-Jun-03 21:34 
A while back I read your MFC FAQ page and I followed your advice about using UPDATE_COMMAND_UI feature. After a few days of struggling with this feature, I was not able to enable or disable menu items through UPDATE_COMMAND_UI. Actually I could disable them but I couldn't get them to appear as grayed. On the other hand CCmdUI has only 5 member functions, and none of them offers the option of graying out the menu.
MFC provides CMenu and if you can't use this class to enable and disable menu items then what good is this menu class for? It would really help if you could elaborate a little bit more on this topic on your FAQ page, because to this day I am still confused.
Personally I use:
GetMenu()->EnableMenuItem( ID_OF_MENU_ITEM, MF_GRAYED );
GetMenu()->EnableMenuItem( ID_OF_MENU_ITEM, MF_BYCOMMAND | MF_ENABLED );

and these calls work just fine for me.


// Afterall I realized that even my comment lines have bugs
GeneralUpdating Cut, Copy, Paste on toolbar Pin
Steven M Hunt5-Jun-03 10:53
Steven M Hunt5-Jun-03 10:53 
GeneralRe: Updating Cut, Copy, Paste on toolbar Pin
valikac5-Jun-03 12:56
valikac5-Jun-03 12:56 
GeneralC++ code for derivation and integration Pin
zakimurtaza5-Jun-03 9:14
zakimurtaza5-Jun-03 9:14 
GeneralRe: C++ code for derivation and integration Pin
Andrew Walker5-Jun-03 22:22
Andrew Walker5-Jun-03 22:22 
GeneralRemoving focus from button in dlg-based app Pin
Vikram A Punathambekar5-Jun-03 9:12
Vikram A Punathambekar5-Jun-03 9:12 
GeneralRe: Removing focus from button in dlg-based app Pin
valikac5-Jun-03 9:28
valikac5-Jun-03 9:28 
GeneralRe: Removing focus from button in dlg-based app Pin
Neville Franks5-Jun-03 10:55
Neville Franks5-Jun-03 10:55 
GeneralRe: Removing focus from button in dlg-based app Pin
Vikram A Punathambekar5-Jun-03 19:54
Vikram A Punathambekar5-Jun-03 19:54 
GeneralRe: Removing focus from button in dlg-based app Pin
BhaskarBora5-Jun-03 18:12
BhaskarBora5-Jun-03 18:12 
GeneralRe: Removing focus from button in dlg-based app Pin
Vikram A Punathambekar5-Jun-03 20:03
Vikram A Punathambekar5-Jun-03 20:03 
GeneralRe: Removing focus from button in dlg-based app Pin
BhaskarBora9-Jun-03 23:35
BhaskarBora9-Jun-03 23:35 
GeneralGood Window Apps - Help Pin
iltallman5-Jun-03 7:53
iltallman5-Jun-03 7:53 
GeneralRe: Good Window Apps - Help Pin
Daniel Turini5-Jun-03 8:37
Daniel Turini5-Jun-03 8:37 
GeneralRe: Good Window Apps - Help Pin
Neville Franks5-Jun-03 11:04
Neville Franks5-Jun-03 11:04 
GeneralTool Tips Not Displayed Pin
Dave_5-Jun-03 7:45
Dave_5-Jun-03 7:45 
GeneralIRC Chat Server Source Code Download Pin
Amer Hafeez5-Jun-03 6:57
Amer Hafeez5-Jun-03 6:57 
QuestionHow do i draw 4:2:0 YUV data on the screen? Pin
Redeemer-dk5-Jun-03 6:51
Redeemer-dk5-Jun-03 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.