April 8th, 1999, 06:16 AM
Dear all,
I am trying to create an ActiveX control (within in VC 6.0) that contains a CStatic and CEdit control. All works fine within the test container, however when I try adding my control from the gallery to a dialog within VC get a assertion that the controls m_hwnd have not been created.
The Create() function does not fail, and says its been created okay. I do not really want to use a ActiveX control with a dialog resource.
The assert happens when the control trys displaying a value, could it be to do with the control state, and I should not draw during the design mode, if so how?
Thanks would be appreciated for any help....
Matthew
matt@barretts.demon.co.uk
I am trying to create an ActiveX control (within in VC 6.0) that contains a CStatic and CEdit control. All works fine within the test container, however when I try adding my control from the gallery to a dialog within VC get a assertion that the controls m_hwnd have not been created.
The Create() function does not fail, and says its been created okay. I do not really want to use a ActiveX control with a dialog resource.
The assert happens when the control trys displaying a value, could it be to do with the control state, and I should not draw during the design mode, if so how?
Thanks would be appreciated for any help....
Matthew
matt@barretts.demon.co.uk