Click here to Skip to main content
15,906,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List Box & Rich Edit box Pin
Suresh H16-Feb-07 1:34
Suresh H16-Feb-07 1:34 
GeneralRe: List Box & Rich Edit box Pin
Hamid_RT16-Feb-07 1:46
Hamid_RT16-Feb-07 1:46 
GeneralRe: List Box & Rich Edit box Pin
Suresh H16-Feb-07 1:26
Suresh H16-Feb-07 1:26 
AnswerRe: List Box & Rich Edit box Pin
prasad_som16-Feb-07 2:15
prasad_som16-Feb-07 2:15 
GeneralRe: List Box & Rich Edit box Pin
Suresh H18-Feb-07 19:12
Suresh H18-Feb-07 19:12 
GeneralRe: List Box & Rich Edit box Pin
prasad_som18-Feb-07 19:14
prasad_som18-Feb-07 19:14 
GeneralRe: List Box & Rich Edit box Pin
Suresh H18-Feb-07 19:52
Suresh H18-Feb-07 19:52 
AnswerRe: List Box & Rich Edit box Pin
prasad_som18-Feb-07 20:09
prasad_som18-Feb-07 20:09 
GeneralRe: List Box & Rich Edit box Pin
Suresh H18-Feb-07 20:20
Suresh H18-Feb-07 20:20 
GeneralRe: List Box & Rich Edit box Pin
prasad_som18-Feb-07 20:32
prasad_som18-Feb-07 20:32 
GeneralRe: List Box & Rich Edit box Pin
Suresh H18-Feb-07 20:50
Suresh H18-Feb-07 20:50 
AnswerRe: List Box & Rich Edit box Pin
prasad_som18-Feb-07 22:00
prasad_som18-Feb-07 22:00 
GeneralRe: List Box & Rich Edit box Pin
Suresh H18-Feb-07 22:48
Suresh H18-Feb-07 22:48 
AnswerRe: List Box & Rich Edit box Pin
prasad_som18-Feb-07 22:52
prasad_som18-Feb-07 22:52 
AnswerRe: List Box & Rich Edit box Pin
David Crow16-Feb-07 2:52
David Crow16-Feb-07 2:52 
QuestionWindows Menus and the WM_MENUCOMMAND message Pin
Martin081515-Feb-07 22:41
professionalMartin081515-Feb-07 22:41 
QuestionRe: Windows Menus and the WM_MENUCOMMAND message Pin
prasad_som16-Feb-07 1:51
prasad_som16-Feb-07 1:51 
AnswerRe: Windows Menus and the WM_MENUCOMMAND message Pin
Martin081516-Feb-07 2:22
professionalMartin081516-Feb-07 2:22 
AnswerRe: Windows Menus and the WM_MENUCOMMAND message Pin
prasad_som16-Feb-07 3:08
prasad_som16-Feb-07 3:08 
QuestionRe: Windows Menus and the WM_MENUCOMMAND message Pin
Martin081516-Feb-07 3:56
professionalMartin081516-Feb-07 3:56 
Hello Prasad,

thanks for your engagement!

I changed my sources, so that ...

1. no MENUINFO action happens while creating the popup
2. the insertion is slightly changed:
2.1 menu->InsertMenu( itemPosition, ..., popup->m_hMenu, ... )
2.2 popup = menu->GetSubMenu( itemPosition )
2.3 requesting with popup->GetMenuInfo the MENUINFO to get the current dwStyle member => oldStyle
2.4 changing and setting with popup->SetMenuInfo the MENUINFO with dwStyle = oldStyle | MNS_NOTIFYBYPOS

I have introduced the ON_MESSAGE handler for WM_MENUCOMMAND, extended the CMainFrame::WindowProc and the CMainFrame::PreTranslateMessage, but none of them gets a WM_MENUCOMMAND message.

Even if a CMainFrame instance is the owner of the menu I insert my popups in, can I really be sure, that CMainFrame instance really receives the WM_MENUCOMMAND messages?

Thanks again and best regards,

Martin Lemburg
AnswerRe: Windows Menus and the WM_MENUCOMMAND message Pin
prasad_som16-Feb-07 5:00
prasad_som16-Feb-07 5:00 
GeneralRe: Windows Menus and the WM_MENUCOMMAND message Pin
Martin081516-Feb-07 6:31
professionalMartin081516-Feb-07 6:31 
QuestionDebugging capability Pin
mt_samiei15-Feb-07 22:39
mt_samiei15-Feb-07 22:39 
AnswerRe: Debugging capability Pin
Cedric Moonen15-Feb-07 22:50
Cedric Moonen15-Feb-07 22:50 
GeneralRe: Debugging capability Pin
mt_samiei15-Feb-07 23:03
mt_samiei15-Feb-07 23:03 

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.