a.在处理WM_PAINT消息时,只能用BeginPaint和EndPaint.
b.CPaintDC对象在构造时调用CWnd::BeginPaint,在析构的时候调用CWnd::EndPaint,刚好符合a.
c.在客户区绘图时,要用GetDC和ReleaseDC.
d.CClientDC对象在构造时调用GetDC,在析构时调用ReleaseDC,刚好符合c.
b.CPaintDC对象在构造时调用CWnd::BeginPaint,在析构的时候调用CWnd::EndPaint,刚好符合a.
c.在客户区绘图时,要用GetDC和ReleaseDC.
d.CClientDC对象在构造时调用GetDC,在析构时调用ReleaseDC,刚好符合c.