Click to See Complete Forum and Search --> : Dialogbar and message reflection


Chris Hagberg
March 29th, 1999, 09:01 AM
I am trying to write a self-contained control. It is simply a class derived from CEdit.

I am able to receive reflected messages fine if the control is in a dialogbox - (created in the resource editor and added with class wizard). If the same control is in a dialogbar (created in the resource editor and added with class wizard) I do not receive the messages.

BUT, if I dynamically create the control in the dialogbar I then receive the messages with no problem.

Why is this? What step am I missing?

Thanks

Masaaki Onishi
March 29th, 1999, 09:50 AM
Hi.


Did you do this?

When you put Dialogbar by applicatoin wizard, this is a new

resource. When you open class wizard, class wizard asks us whether

you create the new class or attach the existing class to this Dialogbar.


When we create the new dialog, we create the new class like CMyDialog.

However, in this case, we add DialogBar - IDR_MAINFRAME - ID to CMainFrame.

After this, the message handler will work on some control on DialogBar

at the CMainFrame class.


Hope for help.

-Masaaki Onishi-

xyjiang
May 6th, 1999, 11:01 AM
Hello,

What does "we add DialogBar - IDR_MAINFRAME - ID to CMainFrame" mean? Can you teach me step by step? Thanks! ^_^