void CpicviewDlg::redraw(void)
{ CDC* pDC = m_staPrev.GetDC();
Graphics graph(pDC->GetSafeHdc());
CRect rect; m_staPrev.GetClientRect(rect);
pDC->FillRect(rect, &CBrush(RGB(211, 211, 211))); int nIndex = m_strPath.ReverseFind('\\');
CString strTemp = m_strPath.Left(nIndex);
{ CDC* pDC = m_staPrev.GetDC();
Graphics graph(pDC->GetSafeHdc());
CRect rect; m_staPrev.GetClientRect(rect);
pDC->FillRect(rect, &CBrush(RGB(211, 211, 211))); int nIndex = m_strPath.ReverseFind('\\');
CString strTemp = m_strPath.Left(nIndex);
Graphics graph(pDC->GetSafeHdc());//用pDC构造一个Graphics对像
CRect rect;//矩形区域m_staPrev.GetClientRect(rect);//得到**的客户区区域
pDC->FillRect(rect, &CBrush(RGB(211, 211, 211)));//填充这个区域int nIndex = m_strPath.ReverseFind('\\');//在m_strPaht从后向前找到'\',返回其索引CString strTemp = m_strPath.Left(nIndex);//strTemp = m_strPath左边,nIndex长度的的内容,