Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket5-Jul-02 12:01
loket5-Jul-02 12:01 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 23:34
generic_user_id5-Jul-02 23:34 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket6-Jul-02 1:52
loket6-Jul-02 1:52 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id6-Jul-02 2:32
generic_user_id6-Jul-02 2:32 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id6-Jul-02 2:50
generic_user_id6-Jul-02 2:50 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket6-Jul-02 2:55
loket6-Jul-02 2:55 
GeneralProcessing GPS data in C++ Pin
5-Jul-02 4:41
suss5-Jul-02 4:41 
Generaldisabled menu item at start Pin
ns5-Jul-02 3:36
ns5-Jul-02 3:36 
I have two handlers for the two messages available for a menu item (command and command_ui..)

These are like:
void CFormViewMDIDoc::OnEnabledByadmin()
{
// TODO: Add your command handler code here

//AfxMessageBox"hello");

}

void CFormViewMDIDoc::OnUpdateEnabledbyadmin(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
pCmdUI->Enable(m_checked) ;
pCmdUI->SetCheck(m_checked);
}


I read that the menu item is initially disabled if theres no command handler for the menu. Even if I uncomment the messagebox in the command handler above, the menu item is still greyed out at startup. WHy is this?

Thank you,
ns
GeneralRe: disabled menu item at start Pin
Fredrik Skog5-Jul-02 3:55
Fredrik Skog5-Jul-02 3:55 
GeneralRe: disabled menu item at start Pin
ns5-Jul-02 4:02
ns5-Jul-02 4:02 
GeneralRe: disabled menu item at start Pin
Roger Allen5-Jul-02 4:08
Roger Allen5-Jul-02 4:08 
GeneralRe: disabled menu item at start Pin
Fredrik Skog5-Jul-02 4:12
Fredrik Skog5-Jul-02 4:12 
GeneralRe: disabled menu item at start Pin
Mike Upton5-Jul-02 4:54
Mike Upton5-Jul-02 4:54 
QuestionMDI doc sending info to modal dlg -how to? Pin
ns5-Jul-02 3:24
ns5-Jul-02 3:24 
AnswerRe: MDI doc sending info to modal dlg -how to? Pin
Mike Upton5-Jul-02 4:59
Mike Upton5-Jul-02 4:59 
GeneralRe: MDI doc sending info to modal dlg -how to? Pin
nsns5-Jul-02 16:24
nsns5-Jul-02 16:24 
GeneralI get the pass in constructor idea....thanks! Pin
nsns5-Jul-02 16:26
nsns5-Jul-02 16:26 
GeneralRe: I get the pass in constructor idea....thanks! Pin
Mike Upton7-Jul-02 22:28
Mike Upton7-Jul-02 22:28 
Generalproblem with CRectTracker Pin
sanskypotov5-Jul-02 3:11
sanskypotov5-Jul-02 3:11 
GeneralSearching for SIMPLE compress Routine Pin
Koep5-Jul-02 2:49
Koep5-Jul-02 2:49 
GeneralRe: Searching for SIMPLE compress Routine Pin
Martin Ziacek5-Jul-02 5:22
Martin Ziacek5-Jul-02 5:22 
GeneralRe: Searching for SIMPLE compress Routine Pin
Chris Losinger5-Jul-02 6:14
professionalChris Losinger5-Jul-02 6:14 
QuestionHow to find out if the program was started from a command line or not. Pin
Janine5-Jul-02 2:36
Janine5-Jul-02 2:36 
AnswerRe: How to find out if the program was started from a command line or not. Pin
adara5-Jul-02 2:58
adara5-Jul-02 2:58 
GeneralSetClipboardViewer Pin
5-Jul-02 2:22
suss5-Jul-02 2:22 

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.