OnDraw, OnDrawAdvanced in CComCompositeControl ATL Controls
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 that WM_PAINT is never actually processed.