![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MFC
highvision25
C/C ,Linux,data-communications,Java
展开
-
mfc写状态栏
void CPhotoEditorView::OnMouseMove(UINT nFlags, CPoint point) { // TODO: 在此添加消息处理程序代码和/或调用默认值 m_mousePoint = point; CString str; str.Format(_T("%sx=%d,y=%d."), m_strStatusBarInfo, point.x, point.y); //方法1:((CMainFrame*)GetParent())->m_wndStatusBar.原创 2020-09-25 17:16:26 · 105 阅读 · 0 评论 -
MFC新建位图
if (NULL == m_pTraceMemDC) { m_pTraceMemDC = new CDC; if (NULL == m_pTraceMemDC) { return; } m_pTraceMemDC->CreateCompatibleDC(NULL); } //这时还不能绘图,因为没有地方画 //下面建立一个与屏幕显示兼容的位图,至于位图的大小嘛,可以用窗口的大小 if (NULL == m_pTraceMemBmp) { m_pT...原创 2020-09-25 16:46:37 · 1551 阅读 · 0 评论