Modify OnDraw function void CHelloRectView :: OnDraw (CDC * pDC) {CRect rcClient; GetClientRect (rcClient); pDC-> DrawText ( "Hello Client Rectangle!", - 1, rcClient, DT_SINGLELINE | DT_CENTER | DT_VCENTER);}