- 2024-01-24MFC 简单的绘图用法
▲效果在OnDraw函数中://CMFCApplication1View绘图voidCMFCApplication1View::OnDraw(CDC*pDC){CMFCApplication1Doc*pDoc=GetDocument();ASSERT_VALID(pDoc);if(!pDoc)return;/*a)定义画家b)定义画笔(画刷)CPen,CBrush
- 2023-04-16MFC-SelectObject新对象替换相同类型的对象
HDChdc=::GetDC(m_hWnd);LOGFONTlf={0};lf.lfWeight=16;//平均宽度lf.lfHeight=40;//字体高度lf.lfCharSet=GB2312_CHARSET;HFONThfont=::CreateFontIndirect(&lf);HFONTholdfont=(HFONT)SelectObject(hdc,hfon
- 2023-01-24个人写的双缓冲 CDC绘图函数
voidCDRImageStatic::ShowImg(CDC*dc,CRectrect){CBitmapbmp;bmp.CreateCompatibleBitmap(dc,m_nWidth,m_nHeight);CBitmap*pOld=NULL;CDCmemDC;memDC.
- 2022-12-12黑白棋盘工具
按C键复制图片到剪贴板。按Z键悔棋。默认是左图圆棋子。很容易改成方形棋子。https://files.cnblogs.com/files/blogs/714801/BrdTool.zip19KB含源码和.exe有效的代