SRGraphComponent::Draw
voidSRGraphComponent::Draw(CDC *pDC, CWnd *pWnd)
Called by the SRGraph::DrawComponentList member function which is called by the CWnd that manages drawing of this graph
Defined in: SRGComp.cpp
Parameters
pDC
Pointer to the CDC used in drawing the CWnd.
pWnd
Pointer to the CWnd object
Developer Notes
Components draw themselves onto the client area of a window in response to calls by the OnPaint or OnDraw functions of the window. The window pointer and CDC pointer are passed at the time of the paint request. The Draw function then takes over drawing fill, border, shadow, and foreground in turn. This method of drawing allows you to build SRGraph functionality into any window including dialog box controls and child windows as well as the classic CDoc-CView combinations.