MFC picture 图像清空

MFC picture control图像清空 

清除一个picture control上的图片
CWnd * 类型需要转化为CStatic*类型

CStatic* pStatic = (CStatic*)GetDlgItem(IDC_STATIC1);
CRect lRect;
pStatic->GetClientRect(&lRect);
pStatic->GetDC()->FillSolidRect(lRect.left ,lRect.top ,lRect.Width(),lRect.Height(), RGB(240, 240, 240));
CStatic* pStatic = (CStatic*)GetDlgItem(IDC_STATIC1);
 CRect lRect; pStatic->GetClientRect(&lRect); pStatic->GetDC()->FillSolidRect(lRect.left ,lRect.top ,lRect.Width(),lRect.Height(), RGB(192, 192, 192));
对我有用[2]  丢个板砖[0]  引用 |  举报 |  管理


你可能感兴趣的:(MFC picture 图像清空)