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

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


Threed command button control in DialogBar of application.

Ronen Ashkenazi -- rashken@ms-israel.kla.com
Wednesday, December 04, 1996


Environment: VC++ 4.2b, NT 4.0

Hi,

 I have a MFC application which includes a DialogBar. This DialogBar was   
inserted to the application through the component gallery.
 The DialogBar includes OCX control button of the type Threed button   
control. I created a message map (Using class wizard) when this control   
is clicked but apparently the message map function never executes when I   
press the button.
 I am using the same Threed button control OCX in my dialog boxes with   
much success.

Does anyone know why the message map function for this Threed button   
control will not fire up when the control is part of my applications   
DialogBar ?

Thanks,
Ronen.




Vincent W. Mayfield -- vmax@gulf.net
Saturday, December 07, 1996

Ronen,

	I am not sure which message map you are talking about, the Dialog Bar =
or your frames, but I think this may help : Dialog bars are part of the =
main window and all of the control notifications are sent to the parent =
of the dialog bar. So if your application was an SDI application your =
dialog bar was probably attached to CMainFrame. So you must handle the =
messages in the parent which in this case is the main frame. If your =
application was an MDI then you need to handle the messages in the =
parent of the frame of the MDI frame you dialog is attached to. For =
further information take a look at the MFC Encyclopedia in the Visual =
C++ Books on line under Dialog Bars. Good Luck.

Vincent W. Mayfield
Senior Software Engineer
vmax@gulf.net
"It is better to beg for forgiveness than ask for permission."




----------
From: 	Ronen Ashkenazi[SMTP:rashken@ms-israel.kla.com]
Sent: 	Wednesday, December 04, 1996 5:28 PM
To: 	'mfcl'
Subject: 	Threed command button control in DialogBar of application.


Environment: VC++ 4.2b, NT 4.0

Hi,

 I have a MFC application which includes a DialogBar. This DialogBar was =
 =20
inserted to the application through the component gallery.
 The DialogBar includes OCX control button of the type Threed button  =20
control. I created a message map (Using class wizard) when this control  =
=20
is clicked but apparently the message map function never executes when I =
 =20
press the button.
 I am using the same Threed button control OCX in my dialog boxes with   =

much success.

Does anyone know why the message map function for this Threed button  =20
control will not fire up when the control is part of my applications  =20
DialogBar ?

Thanks,
Ronen.




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