Kenial-Computer Programming Daily Notes | UserPreferences |
void CTestView::OnDraw(CDC* pDC) { CTestDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); CString cstrTemp; cstrTemp = pDC->GetRuntimeClass()->m_lpszClassName; // TODO: add draw code for native data here }OnDraw? ÇÔ¼öÀÇ ÀÎÀÚ·Î ³Ñ¾î¿À´Â DC´Â ¹«½¼ DCÀϱõ¼î? »ó»óÀ» Çغ¸½Ã±æ.
CPaintDC ÀÌ´Ù.
CView::OnPaint?¿¡¼ È£ÃâµÊ. ¼Ò½º´Â ´ÙÀ½°ú °°À½ :
void CView::OnPaint() { // standard paint routine CPaintDC dc(this); OnPrepareDC(&dc); OnDraw(&dc); }