LRESULT OnPaint( UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& lResult );
Return Value
Returns zero.
Parameters
nMsg
[in] Specifies the message. Not used in the default ATL implementation.
wParam
[in] Additional message-specific information. Not used in the default ATL implementation.
lParam
[in] Additional message-specific information. Not used in the default ATL implementation.
lResult
[in, out] A boolean value. Not used in the default ATL implementation. See MESSAGE_HANDLER for more information.
Remarks
Prepares the container for painting, gets the control's client area, then calls the control class's OnDraw method.
An OnDraw method is automatically added to your control class when you create your control with the ATL Object Wizard. The wizard's default OnDraw draws a rectangle with the label "ATL 2.0".
CComControl Overview | Class Members
See Also BeginPaint, EndPaint, IViewObjectExImpl::Draw