Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to capture the screen as a Jpeg image Pin
Prakash Nadar2-Nov-05 19:36
Prakash Nadar2-Nov-05 19:36 
QuestionHooking LogOff button on the alternate desktop Pin
Chintoo7232-Nov-05 18:18
Chintoo7232-Nov-05 18:18 
QuestionSetEvent? Pin
MCA2-Nov-05 17:32
MCA2-Nov-05 17:32 
AnswerRe: SetEvent? Pin
Renjith Ramachandran2-Nov-05 18:28
Renjith Ramachandran2-Nov-05 18:28 
AnswerRe: SetEvent? Pin
S. Senthil Kumar2-Nov-05 19:10
S. Senthil Kumar2-Nov-05 19:10 
AnswerRe: SetEvent? Pin
Bob Ciora3-Nov-05 1:32
Bob Ciora3-Nov-05 1:32 
GeneralRe: SetEvent? Pin
MCA3-Nov-05 3:06
MCA3-Nov-05 3:06 
QuestionFrame menu enabled! Pin
LiYS2-Nov-05 16:47
LiYS2-Nov-05 16:47 
I have a set of menus in MyFrame, and for some reason I move the
ON_COMMAND()
ON_UPDATE_COMMAND_UI()

of one of them to another module. The problem is its menu item is automatically enabled initially. All the other menu item's message map local to the MyFrame are disabled. How can the previous menu item be disabled?

Here's what MSDN says about update handler

If the framework does not find an ON_UPDATE_COMMAND_UI entry during command routing, it automatically enables the user-interface object if there is an ON_COMMAND entry somewhere with the same command ID. Otherwise, it disables the user-interface object. Therefore, to ensure that a user-interface object is enabled, supply a handler for the command the object generates or supply an update handler for it.

It is possible to disable the default disabling of user-interface objects. For more information, see the m_bAutoMenuEnable member of class CFrameWnd.


So I guess initially the Framwork doesn't find the specific ON_UPDATE_COMMAND_UI macro in MyFrame, that menu item was enabled. And I tried m_bAutoMenuEnable, that doen't work either.D'Oh! | :doh:



QuestionShow WMF Pin
Nishad S2-Nov-05 16:47
Nishad S2-Nov-05 16:47 
QuestionHow to set a special tooltips of a slider control? Pin
CoolStarLee2-Nov-05 14:50
CoolStarLee2-Nov-05 14:50 
QuestionOnPaintBackground() isn't getting called Pin
OlliesDad2-Nov-05 12:22
OlliesDad2-Nov-05 12:22 
AnswerRe: OnPaintBackground() isn't getting called Pin
OlliesDad2-Nov-05 13:22
OlliesDad2-Nov-05 13:22 
QuestionXML Docs supported for C++ in 2003 or 2005? Pin
Todd Smith2-Nov-05 11:53
Todd Smith2-Nov-05 11:53 
QuestionLoad testing & performance monitoring Pin
Todd Smith2-Nov-05 11:33
Todd Smith2-Nov-05 11:33 
Questionthe memory leak Pin
valerie992-Nov-05 11:22
valerie992-Nov-05 11:22 
AnswerRe: the memory leak Pin
Christian Graus2-Nov-05 11:53
protectorChristian Graus2-Nov-05 11:53 
AnswerRe: the memory leak Pin
kakan2-Nov-05 18:44
professionalkakan2-Nov-05 18:44 
AnswerRe: the memory leak Pin
toxcct2-Nov-05 21:17
toxcct2-Nov-05 21:17 
AnswerRe: the memory leak Pin
krmed3-Nov-05 2:54
krmed3-Nov-05 2:54 
AnswerRe: the memory leak Pin
Tim Smith3-Nov-05 3:55
Tim Smith3-Nov-05 3:55 
QuestionAscW Pin
samkook2-Nov-05 10:18
samkook2-Nov-05 10:18 
AnswerRe: AscW Pin
toxcct2-Nov-05 21:14
toxcct2-Nov-05 21:14 
GeneralRe: AscW Pin
samkook3-Nov-05 8:28
samkook3-Nov-05 8:28 
Questionxml in tree view control Pin
gr8coaster3292-Nov-05 10:05
gr8coaster3292-Nov-05 10:05 
AnswerRe: xml in tree view control Pin
AskQuestion2-Nov-05 10:28
AskQuestion2-Nov-05 10:28 

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.