|
-
March 7th, 2002, 11:45 AM
#1
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
-
March 7th, 2002, 01:42 PM
#2
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.
-
March 8th, 2002, 04:26 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|