CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    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



  2. #2
    Join Date
    Mar 1999
    Posts
    22

    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-

  3. #3
    Join Date
    May 1999
    Posts
    34

    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
  •  





Click Here to Expand Forum to Full Width

Featured