Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accelerators not working in MFC dll Pin
ncitom4-Jan-12 6:06
ncitom4-Jan-12 6:06 
AnswerRe: Accelerators not working in MFC dll Pin
patup93-Jan-12 21:22
patup93-Jan-12 21:22 
GeneralRe: Accelerators not working in MFC dll Pin
ncitom4-Jan-12 6:18
ncitom4-Jan-12 6:18 
GeneralRe: Accelerators not working in MFC dll Pin
Randor 4-Jan-12 7:21
professional Randor 4-Jan-12 7:21 
AnswerRe: Accelerators not working in MFC dll Pin
ncitom4-Jan-12 8:43
ncitom4-Jan-12 8:43 
JokeRe: Accelerators not working in MFC dll Pin
Randor 4-Jan-12 9:02
professional Randor 4-Jan-12 9:02 
GeneralRe: Accelerators not working in MFC dll Pin
ncitom4-Jan-12 12:06
ncitom4-Jan-12 12:06 
QuestionDynamic menu with statusbar messages. Pin
Maximilien3-Jan-12 10:24
Maximilien3-Jan-12 10:24 
I build a dynamic menu "system" based on a hierarchy of files and folder (based on the MFCIE sample on msdn).

When I add my item to the menu I do something like :

CString menuString("my menu entry");
pMenu->AppendMenu(MF_STRING | MF_ENABLED, menuID, menuString);


In the CMainFrame::OnCmdMsg I handle the CN_COMMAND and CN_UPDATE_COMMAND_UI messages to handle the commands associated to the menu entries.

That is working fine.

Now, I'd like to be able to display a message in the status bar when the user moves the mouse over the menu items.

normally on "static" menu , I set the menu string (including mnemonic) in the resource and add an associated STRINGTABLE entry for the menu ID :

...
        MENUITEM "DoSomething\tF5", ID_DO_SOMETHING
...

STRINGTABLE 
BEGIN
    ID_DO_SOMETHING "Do Something\nMEssage that explains DoSomething"
END


-----
Is there an API to do that ? As far as I can see and read in MSDN there's nothing for it.

Or what should I do to do this "manually" ? I assume I have to do some kind of mouse tracking (and onIdle or timer?) to get the menu item and post a relevant text to the status bar.

Thanks.
Watched code never compiles.

AnswerRe: Dynamic menu with statusbar messages. Pin
ThatsAlok3-Jan-12 19:19
ThatsAlok3-Jan-12 19:19 
GeneralRe: Dynamic menu with statusbar messages. Pin
Maximilien4-Jan-12 3:35
Maximilien4-Jan-12 3:35 
AnswerRe: Dynamic menu with statusbar messages. Pin
Randor 4-Jan-12 0:59
professional Randor 4-Jan-12 0:59 
GeneralRe: Dynamic menu with statusbar messages. Pin
Maximilien4-Jan-12 4:13
Maximilien4-Jan-12 4:13 
GeneralRe: Dynamic menu with statusbar messages. Pin
Randor 4-Jan-12 4:31
professional Randor 4-Jan-12 4:31 
GeneralRe: Dynamic menu with statusbar messages. Pin
Maximilien4-Jan-12 5:22
Maximilien4-Jan-12 5:22 
JokeRe: Dynamic menu with statusbar messages. Pin
Randor 4-Jan-12 5:27
professional Randor 4-Jan-12 5:27 
QuestionConvert CString to CObject VC 6.0 MFC SOLVED Pin
Vaclav_3-Jan-12 8:25
Vaclav_3-Jan-12 8:25 
AnswerRe: Convert CString to CObject VC 6.0 MFC Pin
CPallini3-Jan-12 8:31
mveCPallini3-Jan-12 8:31 
GeneralRe: Convert CString to CObject VC 6.0 MFC Pin
Vaclav_3-Jan-12 8:48
Vaclav_3-Jan-12 8:48 
GeneralRe: Convert CString to CObject VC 6.0 MFC Pin
Vaclav_3-Jan-12 8:49
Vaclav_3-Jan-12 8:49 
GeneralRe: Convert CString to CObject VC 6.0 MFC Pin
ThatsAlok3-Jan-12 19:16
ThatsAlok3-Jan-12 19:16 
QuestionCheck if a window is hidden by another window Pin
Member 29654713-Jan-12 5:48
Member 29654713-Jan-12 5:48 
AnswerRe: Check if a window is hidden by another window Pin
Richard Andrew x643-Jan-12 5:57
professionalRichard Andrew x643-Jan-12 5:57 
AnswerRe: Check if a window is hidden by another window Pin
Randor 3-Jan-12 6:42
professional Randor 3-Jan-12 6:42 
AnswerRe: Check if a window is hidden by another window Pin
Albert Holguin4-Jan-12 9:39
professionalAlbert Holguin4-Jan-12 9:39 
QuestionThread sync Pin
columbos149272-Jan-12 20:05
columbos149272-Jan-12 20:05 

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.