MFC对话框上怎么画圆?是用onpaint函数吗?
MFC对话框上怎么画圆?是用onpaint函数吗?
日期:2021-03-28 00:46:24 人气:2
CRect rc ;
CStatic *pPic = (CStatic*)GetDlgItem(IDC_STATIC_Pic);
pPic->GetClientRect(&rc);//获得控件客户区大小
CDC *pDC = pPic->GetDC();//获取绘图DC
int cx=rc.right;<
MFC对话框上怎么画圆?是用onpaint函数吗?
CRect rc ;
CStatic *pPic = (CStatic*)GetDlgItem(IDC_STATIC_Pic);
pPic->GetClientRect(&rc);//获得控件客户区大小
CDC *pDC = pPic->GetDC();//获取绘图DC
int cx=rc.right;<