CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    48

    Using ActiveX control without dialog box

    I have a 3rd party ActiveX control and I will be using it from a class (B, say) which contains the dialog onto which the control is placed. Is it possible to use the methods in the control from class B even when the dialog has been closed. If so, can anyone tell me how.

    Thanks v. much,

    Paul L


  2. #2
    Join Date
    Oct 2001
    Location
    CA,USA
    Posts
    60

    Re: Using ActiveX control without dialog box

    Use Create method to create the ActiveX control.
    and pass NULL in place of parent. Then you can use the control functions as if it were from a regular class. But if the function is UI related
    then you will have problems.


    Please rate the article if it is of any use to you. This encourages me to reply more and more and more.

  3. #3
    Join Date
    Aug 2001
    Posts
    48

    Re: Using ActiveX control without dialog box

    The control doesn't use any kind of UI, but it's class is created by C++ (i.e. it's wrapper) so it is derived from CWnd. This means that when I try Create it gives an assertion for the parent being NULL.

    Any other ideas?


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