Click here to Skip to main content
16,008,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 2-Way StringToString Map Pin
Matt Weagle14-Mar-02 17:29
Matt Weagle14-Mar-02 17:29 
GeneralRe: 2-Way StringToString Map Pin
Tomasz Sowinski15-Mar-02 0:14
Tomasz Sowinski15-Mar-02 0:14 
Questioncan anyone help me with this? Pin
lucy14-Mar-02 11:36
lucy14-Mar-02 11:36 
AnswerRe: can anyone help me with this? Pin
Christian Graus14-Mar-02 11:40
protectorChristian Graus14-Mar-02 11:40 
GeneralRe: can anyone help me with this? Pin
lucy15-Mar-02 2:47
lucy15-Mar-02 2:47 
Generalundeclared identifier Pin
Shotgun14-Mar-02 10:52
Shotgun14-Mar-02 10:52 
GeneralRe: undeclared identifier Pin
Christian Graus14-Mar-02 11:41
protectorChristian Graus14-Mar-02 11:41 
QuestionShould Contextual menu show mnemonics ? Pin
Maximilien14-Mar-02 9:30
Maximilien14-Mar-02 9:30 
[Updated...]
On VC++ 6.something, and building on Win2000...

Should contextual menus have mnemonics ( display them ? ) ?

This is what I do, and doesn't seems to show mnemonics on contextual menus... :
...
 CMenu menuTemp;
 VERIFY(menuTemp.LoadMenu(IDM_MY_MENU) );
 CMenu* pPopup = menuTemp.GetSubMenu(0);
 ASSERT(pPopup != NULL);
 VERIFY( pPopup->TrackPopupMenu(TPM_RIGHTBUTTON,pt.x,pt.y, AfxGetMainWnd()) );
...


and goes to to the ON_UPDATE_COMMAND_UI handler ...
void CMyClass::OnUpdateMenuItem(CCmdUI* pCmdUI ) 
{
 pCmdUI->Enable( SomeCheck() );
 // own method that really returns the string with the "&"
 CString s = AddAccelerator(pCmdUI, 0)
 pCmdUI->SetText( s );
}


the resources have all the "&" at the right places ... and the handler is also used for the main app. menu ( and the mnemonics are displayed ! ).

Thanks.

Max
AnswerRe: Contextual menu with/without mnemonics ? Pin
Tomasz Sowinski14-Mar-02 9:59
Tomasz Sowinski14-Mar-02 9:59 
AnswerRe: Should Contextual menu show mnemonics ? Pin
Maximilien14-Mar-02 10:49
Maximilien14-Mar-02 10:49 
GeneralRe: Should Contextual menu show mnemonics ? Pin
Shog914-Mar-02 11:09
sitebuilderShog914-Mar-02 11:09 
GeneralRe: Should Contextual menu show mnemonics ? Pin
Maximilien14-Mar-02 13:15
Maximilien14-Mar-02 13:15 
Questionl,Winsock Spy? Pin
Aaron Schaefer14-Mar-02 8:56
Aaron Schaefer14-Mar-02 8:56 
AnswerRe: l,Winsock Spy? Pin
Tomasz Sowinski14-Mar-02 9:17
Tomasz Sowinski14-Mar-02 9:17 
AnswerRe: l,Winsock Spy? Pin
Jon Hulatt15-Mar-02 0:48
Jon Hulatt15-Mar-02 0:48 
Questionl,Winsock Spy? Pin
Aaron Schaefer14-Mar-02 8:55
Aaron Schaefer14-Mar-02 8:55 
GeneralMFC Regular DLLs and Handle Maps Pin
Dave Glick14-Mar-02 8:20
Dave Glick14-Mar-02 8:20 
GeneralRe: MFC Regular DLLs and Handle Maps Pin
Tomasz Sowinski14-Mar-02 8:42
Tomasz Sowinski14-Mar-02 8:42 
GeneralRe: MFC Regular DLLs and Handle Maps Pin
Dave Glick14-Mar-02 8:55
Dave Glick14-Mar-02 8:55 
GeneralRe: MFC Regular DLLs and Handle Maps Pin
Tomasz Sowinski14-Mar-02 9:27
Tomasz Sowinski14-Mar-02 9:27 
GeneralWrong app icon used in explorer Pin
Jason Hihn14-Mar-02 8:19
Jason Hihn14-Mar-02 8:19 
Generalpdf about win32 Pin
DiegoValdevino14-Mar-02 7:57
DiegoValdevino14-Mar-02 7:57 
GeneralRe: pdf about win32 Pin
14-Mar-02 21:03
suss14-Mar-02 21:03 
QuestionHow to use WM_COPY? Pin
Pony14-Mar-02 7:21
Pony14-Mar-02 7:21 
AnswerRe: How to use WM_COPY? Pin
Dave Glick14-Mar-02 8:25
Dave Glick14-Mar-02 8:25 

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.