- 博客(5)
- 收藏
- 关注
原创 非客户区自绘
void CMainFrame::OnNcPaint(){ // TODO: 在此处添加消息处理程序代码 // 不为绘图消息调用 CFrameWnd::OnNcPaint(); myDrawCaption(this); }//得分榜void CMainFrame::myDrawCaption(CWnd* pWnd){ CDC* pWinDC = pWnd->GetWindowD
2006-09-20 10:40:00
1355
原创 设置标题和图标,设置窗口大小,设置光标
//设置标题int CFreecellView::UpdateTitle(void) { CString str, strtemp; str.Format("#%#d", FreecellGame->m_SelectNum); strtemp.Format("空当接龙游戏 "); strtemp += str; CWnd* pW = ::AfxGetMainWnd(); pW->SetWindo
2006-09-20 10:38:00
1227
原创 注册表简单操作
注册表简单操作 CString strSection = "MyFreecell"; //读入注册表,英雄榜 CString strIntItem = "My Int Item"; CWinApp* pApp = AfxGetApp(); for(int i=0;i for(int j=0; j { FreecellGame->Record[3*(i+1)+j] = pApp->G
2006-09-20 10:33:00
621
原创 双缓存绘图GDI
//双缓存绘图 CBitmap bitmapmem; CBitmap *pOldBit; CDC m_pMemDC; m_pMemDC.CreateCompatibleDC(pDC); CRect rc; GetClientRect(&rc); bitmapmem.CreateCompatibleBitmap(pDC, rc.Width(), rc.Height()); p
2006-09-20 10:31:00
1993
转载 关于获得MFC窗口其它类指针的方法
关于获得MFC窗口其它类指针的方法访问应用程序的其它类获得CWinApp: -在CMainFrame,CChildFrame,CDocument,CView中直接调用AfxGetApp()或用theApp -在其它类中只能用AfxGetApp()获得CMainFrame: -在CMinApp中用AfxGetMainWnd()或者m_pMainWnd -在CChildFrame中可用GetPar
2006-09-20 10:16:00
766
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人