CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    27

    Problem with CDialogBar

    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.


  2. #2
    Join Date
    May 1999
    Posts
    34

    Re: Problem with CDialogBar

    Hi,

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


  3. #3
    Join Date
    May 1999
    Posts
    27

    Re: Problem with CDialogBar

    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.


  4. #4
    Join Date
    May 1999
    Posts
    16

    Re: Problem with CDialogBar

    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.


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