- 博客(8)
- 收藏
- 关注
原创 MFC如何遍历对话框上的每个控件,判定是否是某种控件,绑定控件变量和id来批量应用样式
MFC如何遍历对话框上的每个控件_mary288267的博客-优快云博客_mfc遍历窗口控件在一个对话框类成员函数中,使用CWnd::GetWindow和CWnd::GetNextWindow即可。void CTextView::Test(){ CWnd* pWnd=NULL; pWnd=GetWindow(GW_CHILD); //获取第一个子控件 while(pWnd) { //对控件进行处理 // if CWnd i...
2022-04-12 10:08:26
1748
原创 MFC 自己建立的类怎么 自定义消息
首先自己建立的类继承CWnd参考:https://www.oschina.net/question/565065_72596第一步要声明消息:#defineWM_MYMSGWM_USER+200第二步要在类声明中声明消息映射:DECLARE_MESSAGE_MAP()第三步要在类声明中定义消息处理函数:afx_msg LRESULT MyMsgHandler(WPARAM,LPARAM);在.cpp中做的工作:第四步要实现消息映射:BEGIN_MESSAGE...
2020-12-23 09:51:38
183
原创 window下使用SetUnhandledExceptionFilter捕获程序的崩溃,WindbgPreview 分析dmp 文件
window下使用SetUnhandledExceptionFilter捕获让程序的崩溃[转]https://www.cnblogs.com/lisuyun/p/5245609.htmlWindbgPreview 分析dmp 文件https://blog.youkuaiyun.com/weixin_43956962/article/details/105793644
2020-07-20 17:54:17
451
原创 MFC word 获取书签处的表格,增加行,插入内容
bookmark = m_bookmarks.Item(&_variant_t(_T("CreatTable1"))); m_range = bookmark.get_Range(); tables= m_range.get_Tables(); table = tables.Item(1); cell = table.Cell(3, 1)...
2020-03-27 14:35:46
667
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人