mfc >> CDialog and menus

by Gaetano Sferra » Tue, 25 Nov 2003 18:58:26 GMT

Hello,
I got a problem with menu resources used in CDialog istances....
I've built a "Dialog Based" application with VC++ Project Wizard and I've
assigned a menu to the dialog using the '&' to declare access keys.
When I run the application, pressing Alt+[keyletter] the mendoesn't
appear, why?

Thank you,
Gaetano Sferra






mfc >> CDialog and menus

by Gaetano Sferra » Wed, 26 Nov 2003 03:07:17 GMT


Hello,
this seems to be a common problem, I've found a lot of people with the same
problem...
If someone can help us, I will post your replies in that forums...

Thank you!

"Gaetano Sferra" < XXXX@XXXXX.COM > ha scritto nel messaggio






Similar Threads

1. R: CDialog and menus

2. CDialog - Cannot set check mark to menu Item

I've got a simple menu, created it in the resource editor and made it the
menu for my main Dialog window. (CRSMDlg)

How do I get my menu to display a check / tick box next to the item when I
click on it. I tried adding the ON_UPDATE_COMMAND_UI event handler but no
matter what I do the menu item is not "ticked"  :

void CRSMDlg::OnUpdateOps(CCmdUI *pCmdUI) {
    pCmdUI->SetCheck(1);

}

Is there an update / repaint method I must call, some property I must set on
the Dialog box to inform it ?

Also I found that the shortcut keys does not display when you click on File,
but if you keep the ALT button , then only it displays it - can we switch
this behaviour off ?