Click to See Complete Forum and Search --> : Problem with CDialogBar


Frederic Naudeau
April 16th, 1999, 11:53 AM
Hi,

I have declared and created in CMainFrame a CDialogBar.
In the resource dialog corresponding to this CDialogBar, I have put a pushbutton and a activeX ( Microsoft Forms 2.0 CommandButton ).
My problem is that when I'm doing this :

//{{AFX_MSG_MAP(CCADImplantView)
ON_COMMAND(ID_PUSHBUTTON, OnButton)
ON_COMMAND(ID_ACTIVEX_BUTTON, OnActiveXButton)
....




The "OnButton()" method is called when I press the pushbutton, but not "OnActiveXButton()" when I press the ActiveX Button.

Do you understand why ?
How can I manage to put this ActiveX in my CDialogBar and handle his events ?

Thanks in advance.

xyjiang
May 6th, 1999, 11:05 AM
Hi,

I have the same problem as you. Have you solved this problem?

Frederic Naudeau
May 7th, 1999, 02:46 AM
Hi,

No I didn't solve the problem !!
For instance I have decided to create my own button, without using an ActiveX !!

Frédéric Naudeau.

dineshsv
May 7th, 1999, 06:07 AM
Hi,

We need to add the message map in CMainFrame only for all the controls we use in dialogbar. Paste all code and message map macros in mainframe and check. Inform me the result.

Bye,
Dinesh.