Where is TstCon: ActiveX test container

Long back we used to have an ActiveX test container called TstCon, which was used for debugging our ActiveX controls. I went looking for the container and found it in the samples folder, Ideally it will be the following sample folder… rootAllVCLanguageSamplesC++MFColeTstCon More of why this tool was moved out of the standard tools that […]
Continue reading…

 

GetDlgItem fails for an ActiveX control

Was working with a customer yesterday who was having this issue of GetDlgItem failing to return a valid window handle for an ActiveX control placed on a dialog. The ActiveX control is visible though but curiously the handle was always showing up as NULL. While debugging saw this particular line in the Visual Studio 2010 […]
Continue reading…

 

ATL 9.0 displayed in the middle of an Activex control

Recently a customer of mine faced this issue. So he had an ActiveX control and when displaying the ActiveX control in browser a string is displayed right in the middle of the control: “ATL 9.0”. So this issue happens because you didn’t override CComControlBase::OnDraw  function. The default code for CComControlBase::OnDraw looks like the following… [sourcecode language=”cpp”]HRESULT CComControlBase::YourClassName::OnDraw(_In_ ATL_DRAWINFO& […]
Continue reading…