Click to See Complete Forum and Search --> : CPropertyPage & ActiveX


May 28th, 1999, 08:40 AM
Hi!
Who can explain me, why I can't add ActiveX control in my CPropertyPage control (Wizard mode). Where I add my ActiveX control in one of my pages, this page is not accessible (I mean that this page is ignored when I browse my Wizard pages). ActiveX control is simple BUTTON control.
Sorry for my bad english :)

e-mail me spider@ds9.mif.pg.gda.pl

Stu
May 28th, 1999, 11:30 AM
The ProperySheet doesn't display a property page if any of the controls on it failed to be created - this is probably the cause.

Are you creating the control dynamically? or did you insert it on the page using the resource editor?

I don't know enough about your specific case, but I had the same problem when dynamically creating an ActiveX control on a property page. I inserted a custom control resource on the page and was using this as the site for the control - which gets created at runtime in OnInitdialog().

The page was dissapearing when it was displayed because control.Create() failed (I didn't specify a license key for it...)

I suggest you check for any errors when creating the control.