if (m_ptmpview==NULL) { m_ptmpview=GetWindow(GW_CHILD); if (m_ptmpview!=NULL) m_ptmpview->SendMessage(WM_PAINT); } CRect rc=CRect(0,0,0,0); m_ptmpview->GetClientRect(&rc);