Archive for the ‘ C/C++ ’ Category
When derriving ActiveX controls from CComCompositeControl the virtual functions OnDraw() and OnDrawAdvanced() are not being called. A look at atlctl.h reveals that OnDraw is called from OnDrawAdvanced, which is in turn called from CComControlBase::OnPaint. The message handler for OnPaint, however, is declared in CComControl, and CComCompositeControl does not chain its message map to CComControl, so [ READ MORE ]
This article is part of a backup. It was originally posted on Wednesday, February 21. 2007. The following article describes how to use Visual Studio C++ 2005 Express Edition with the new Microsoft Windows SDK on 64-bit Windows Vista systems. It will, at least for the better part, apply to other Windows Operating systems as well. Requirements This [ READ MORE ]
This article is part of a backup. It was originally posted on Wednesday, May 23. 2007. Introduction The code samples in the following paragraphs assume that there exists a custom ATL 7.0 COM control called CMyControl, which is derrived from CComControl. Such a control can be created using the ATL Control wizzard in Visual Studio or – [ READ MORE ]