|
-
March 29th, 1999, 10:01 AM
#1
Dialogbar and message reflection
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
-
March 29th, 1999, 10:50 AM
#2
Re: One consideration
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-
-
May 6th, 1999, 11:01 AM
#3
Re: One consideration
Hello,
What does "we add DialogBar - IDR_MAINFRAME - ID to CMainFrame" mean? Can you teach me step by step? Thanks! ^_^
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|