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…