SRGraph::DrawingUsing
voidSRGraph::DrawingUsing(CDC *pDC, CWnd *pCWnd)
Prepares the SRGraph object so that component drawing and sizing functions can be utilized outside the normal drawing process -- DrawComponentList(). Sets the m_pDC, m_pCWnd, and m_DisplayRect members.
Defined in: SRGraph.cpp
Parameters
pDC
Pointer to a valid CDC for the drawing processes
pCWnd
Pointer to a CWnd object in which drawing will take place
Example
The following code segment shows how to draw a wiget in response to a mouse click, for exampleSRGraphDisplay *pD = (SRGraphDisplay *)GetGraph()->GetComponent(0,IDS_SRG_DISPLAYTYPE);
if(pD!=NULL)
{
CDC *pDC=GetDC();
GetGraph()->DrawingUsing(pDC, this);
pD->DrawingUsing(pDC, this);
CPoint datapoint= [ omitted ]
SRGraphStyle * pStyle = GetGraph()->GetDefaultDataStyle();
pD->DrawWiget(datapoint,pStyle);
pD->NotDrawing();
GetGraph()->NotDrawing();
ReleaseDC(pDC);
}






