MFC 画圆 互相覆盖CPaintDC dc(this); \x05CClientDC myDC(this);\x05CBrush *pBrush = CBrush::FromHandle((HBRUSH)GetStockObject(NULL_BRUSH));\x05myDC.SelectObject(pBrush);\x05dc.Ellipse(CRect(start,end));运行环境vc6.0 每次画圆之后,新的
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/31 20:11:50
![MFC 画圆 互相覆盖CPaintDC dc(this); \x05CClientDC myDC(this);\x05CBrush *pBrush = CBrush::FromHandle((HBRUSH)GetStockObject(NULL_BRUSH));\x05myDC.SelectObject(pBrush);\x05dc.Ellipse(CRect(start,end));运行环境vc6.0 每次画圆之后,新的](/uploads/image/z/9310688-8-8.jpg?t=MFC+%E7%94%BB%E5%9C%86+%E4%BA%92%E7%9B%B8%E8%A6%86%E7%9B%96CPaintDC+dc%28this%29%3B+%5Cx05CClientDC+myDC%28this%29%3B%5Cx05CBrush+%2ApBrush+%3D+CBrush%3A%3AFromHandle%28%28HBRUSH%29GetStockObject%28NULL_BRUSH%29%29%3B%5Cx05myDC.SelectObject%28pBrush%29%3B%5Cx05dc.Ellipse%28CRect%28start%2Cend%29%29%3B%E8%BF%90%E8%A1%8C%E7%8E%AF%E5%A2%83vc6.0+%E6%AF%8F%E6%AC%A1%E7%94%BB%E5%9C%86%E4%B9%8B%E5%90%8E%2C%E6%96%B0%E7%9A%84)
MFC 画圆 互相覆盖CPaintDC dc(this); \x05CClientDC myDC(this);\x05CBrush *pBrush = CBrush::FromHandle((HBRUSH)GetStockObject(NULL_BRUSH));\x05myDC.SelectObject(pBrush);\x05dc.Ellipse(CRect(start,end));运行环境vc6.0 每次画圆之后,新的
MFC 画圆 互相覆盖
CPaintDC dc(this);
\x05CClientDC myDC(this);
\x05CBrush *pBrush = CBrush::FromHandle((HBRUSH)GetStockObject(NULL_BRUSH));
\x05myDC.SelectObject(pBrush);
\x05dc.Ellipse(CRect(start,end));
运行环境vc6.0 每次画圆之后,新的圆会把以前的圆覆盖掉,所以我想问怎么画可以不用覆盖掉.
MFC 画圆 互相覆盖CPaintDC dc(this); \x05CClientDC myDC(this);\x05CBrush *pBrush = CBrush::FromHandle((HBRUSH)GetStockObject(NULL_BRUSH));\x05myDC.SelectObject(pBrush);\x05dc.Ellipse(CRect(start,end));运行环境vc6.0 每次画圆之后,新的
//创建一个不填充的画刷即可
CClientDC pdc(this);
pdc.SetPixel(25,25,RGB(255,0,0));//一个红点
CBrush *OldBrush;
OldBrush=(CBrush*)pdc.SelectStockObject(NULL_BRUSH);//创建一个不填充的画刷
pdc.Ellipse(0,0,50,50);//一个圆
pdc.SelectObject(OldBrush);