Click here to Skip to main content
15,907,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change the print font? Pin
vikas amin7-Oct-05 2:22
vikas amin7-Oct-05 2:22 
AnswerRe: How to change the print font? Pin
douglasjordan7-Oct-05 6:48
douglasjordan7-Oct-05 6:48 
AnswerRe: How to change the print font? Pin
ThatsAlok7-Oct-05 20:26
ThatsAlok7-Oct-05 20:26 
QuestionOnUpdateCommand and menu Items Pin
#realJSOP7-Oct-05 2:11
professional#realJSOP7-Oct-05 2:11 
AnswerRe: OnUpdateCommand and menu Items Pin
David Crow7-Oct-05 2:58
David Crow7-Oct-05 2:58 
GeneralRe: OnUpdateCommand and menu Items Pin
#realJSOP7-Oct-05 3:05
professional#realJSOP7-Oct-05 3:05 
GeneralRe: OnUpdateCommand and menu Items Pin
David Crow7-Oct-05 3:52
David Crow7-Oct-05 3:52 
GeneralRe: OnUpdateCommand and menu Items Pin
#realJSOP7-Oct-05 6:54
professional#realJSOP7-Oct-05 6:54 
It already is a SDI app, and no, I'm not messing with colors. Like I've already said twice, it grays out only AFTER the user clicks it.

I've even tried simply doing this on the updateUI handler:

pCmdUI->Enable(FALSE);

...and that still doesn't gray it out. This is all MFC with no derived classes regarding the menus, and all handlers were added through the class wizard, so I'm not doing anything strange at all.

I think it's got something to do with the fact that the menu is the main menu and not a sub menu (again, something I've already mentioned). I saw something somwhere that said the state of a menu items is updated before the menu is drawn. I'm thinking that since it's the main menu, and only drawn once (or when the window is resized?), it doesn't know about the disabled state because that's not checked until after the menu is drawn.



------- sig starts

"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
AnswerRe: OnUpdateCommand and menu Items Pin
David Crow7-Oct-05 8:10
David Crow7-Oct-05 8:10 
GeneralRe: OnUpdateCommand and menu Items Pin
#realJSOP7-Oct-05 9:10
professional#realJSOP7-Oct-05 9:10 
AnswerRe: OnUpdateCommand and menu Items Pin
Michael Dunn7-Oct-05 9:10
sitebuilderMichael Dunn7-Oct-05 9:10 
Questionobj versus &obj - performance test Pin
ddmcr7-Oct-05 2:08
ddmcr7-Oct-05 2:08 
AnswerRe: obj versus &obj - performance test Pin
vikas amin7-Oct-05 2:16
vikas amin7-Oct-05 2:16 
GeneralRe: obj versus &obj - performance test Pin
ddmcr7-Oct-05 2:23
ddmcr7-Oct-05 2:23 
QuestionRe: obj versus &obj - performance test Pin
toxcct7-Oct-05 2:47
toxcct7-Oct-05 2:47 
GeneralRe: obj versus &obj - performance test Pin
ddmcr7-Oct-05 2:53
ddmcr7-Oct-05 2:53 
GeneralRe: obj versus &obj - performance test Pin
toxcct7-Oct-05 2:58
toxcct7-Oct-05 2:58 
GeneralRe: obj versus &obj - performance test Pin
ddmcr7-Oct-05 3:06
ddmcr7-Oct-05 3:06 
AnswerRe: obj versus &obj - performance test Pin
toxcct7-Oct-05 3:15
toxcct7-Oct-05 3:15 
GeneralRe: obj versus &obj - performance test Pin
Maximilien7-Oct-05 3:19
Maximilien7-Oct-05 3:19 
GeneralRe: obj versus &obj - performance test Pin
ddmcr7-Oct-05 3:24
ddmcr7-Oct-05 3:24 
AnswerRe: obj versus &obj - performance test ( edited with more results : Pin
Maximilien7-Oct-05 2:59
Maximilien7-Oct-05 2:59 
GeneralRe: obj versus &obj - performance test Pin
ddmcr7-Oct-05 3:02
ddmcr7-Oct-05 3:02 
GeneralRe: obj versus &obj - performance test ( edited with more results : Pin
ddmcr7-Oct-05 4:17
ddmcr7-Oct-05 4:17 
AnswerRe: obj versus &obj - performance test Pin
S. Senthil Kumar7-Oct-05 3:19
S. Senthil Kumar7-Oct-05 3:19 

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.