15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Displaying menu help messages for pop-up menu in dialog

Michael Iles -- michaeli@dra.com
Thursday, August 22, 1996


Environment: VC++ 4.1, NT 4.0

I have an MDI application that displays a modal dialog with an edit   
control in it. The edit control has a right-mouse-click popup menu. I'm   
trying to figure out the best way to present help messages for the items   
on that popup menu. I have a number of options:

1)  I can make the parent window (the MDI frame window) the owner of the   
popup menu, in which case the menu help messages get routed to the status   
bar on the parent window. This is acceptable, except that the parent   
window must be aware of the dialog's command messages and pass them on to   
the dialog (seems messy).
2)  Can I display a status bar on a dialog? This would also be   
acceptable.
3)  Can I somehow attach the status bar on the parent window to the   
dialog, so the menu messages for the dialog are automatically displayed   
on the parent's status bar and the command messages don't have to be   
routed through the parent?
4)  Is there something more exotic, or is there a better approach? My   
first impulse was to have tool-tips for the popup menu but I soon   
realised that this is inappropriate. My dialog stops getting   
OnToolHitTest messages as soon as the menu appears (as it should).

Thanks in advance!
Mike Iles.
(michaeli@dra.com)



MHENRY.UMI.COM -- MHENRY@umi.com
Monday, August 26, 1996


--Boundary-310546-0-0

Mike, 
 
I've never done it, but PSS article Q123158 in the help file explains how to 
attach a toolbar and a status bar to a dialog.  Looks pretty straightforward. 
 
--matt


--Boundary-310546-0-0
Content-Type: message/rfc822

Date: 25 Aug 96 23:40:38
From:"Michael Iles " 
To: mfc-l@netcom.com
Subject: Displaying menu help messages for pop-up menu in dialog
Reply-to: mfc-l@netcom.com
X-Orcl-Application: Encoding:  27 TEXT
X-Mailer: Microsoft Mail V3.0
X-Orcl-Application: Sender:  owner-mfc-l@majordomo.netcom.com
X-Orcl-Application: Errors-To:  owner-mfc-l@majordomo.netcom.com
X-Orcl-Application: Precedence:  bulk



Environment: VC++ 4.1, NT 4.0

I have an MDI application that displays a modal dialog with an edit   
control in it. The edit control has a right-mouse-click popup menu. I'm   
trying to figure out the best way to present help messages for the items   
on that popup menu. I have a number of options:

1)  I can make the parent window (the MDI frame window) the owner of the   
popup menu, in which case the menu help messages get routed to the status   
bar on the parent window. This is acceptable, except that the parent   
window must be aware of the dialog's command messages and pass them on to   
the dialog (seems messy).
2)  Can I display a status bar on a dialog? This would also be   
acceptable.
3)  Can I somehow attach the status bar on the parent window to the   
dialog, so the menu messages for the dialog are automatically displayed   
on the parent's status bar and the command messages don't have to be   
routed through the parent?
4)  Is there something more exotic, or is there a better approach? My   
first impulse was to have tool-tips for the popup menu but I soon   
realised that this is inappropriate. My dialog stops getting   
OnToolHitTest messages as soon as the menu appears (as it should).

Thanks in advance!
Mike Iles.
(michaeli@dra.com)


--Boundary-310546-0-0--




| Вернуться в корень Архива |