據我所知,派生的CStatic控件中的My OnPaint()方法應該是切割大於控件的圖形部分。 但它不這樣做。CStatic中的CPaintDC不切割圖形
void CGraph::OnPaint()
{
CPaintDC dc(this);
dc.SetViewportOrg (0, 400);
dc.SetMapMode(MM_ISOTROPIC);
dc.SetWindowExt(1000, 800);
dc.SetViewportExt(1000, -800);
// MessageBox(L"OnPaint");
ProcessData();
DrawCoordinateSystem (&dc);
DrawGrid (&dc);
DrawGraph (&dc);
}