0
A
回答
1
1停止CMainFrame中)在你的CMainFrame消息映射處理程序添加到WM_CLOSE消息:
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
...
ON_WM_CLOSE()
...
END_MESSAGE_MAP()
2)添加AFX_MSG無效的OnClose();在頭文件
3)添加的CMainFrame :: OnClose中的類定義()實施
void CMainFrame::OnClose()
{
if (okToClose)
{
CFrameWnd::OnClose();
}
else
{
// Do nothing
}
}
相關問題
- 1. System.Windows.Controls.Expander MFC相當於
- 2. CLR相當於MFC CStringList
- 3. 相當於Java中的MFC CInternetSession?
- 4. VB的AppActivate的MFC/C++相當於
- 5. MFC相當於Java文件isDirectory()
- 6. 統一的strlen相當於MFC
- 7. CGColorGetComponents在Android中相當於
- 8. 相當於ungetc在java中
- 9. 在Python中相當於JavaBean
- 10. invalidateLayout在iOS8中相當於
- 11. 在R中,相當於upper_bound()
- 12. 在mssql中相當於initcap
- 13. 在JS中相當於RSACryptoServiceProvider
- 14. 在WPF中相當於QStackedLayout
- 15. 在Java中相當於STXXL
- 16. SDO_GEOMETRY在Postgresql中相當於
- 17. 在mysql中相當於pg_query_params?
- 18. 在JAVA中相當於cURL
- 19. 「AS」在sqlite中相當於
- 20. viewWillAppear中相當於在cocos2d
- 21. 在Java中相當於DataTable
- 22. BigInteger在Swift中相當於?
- 23. &&相當於在PowerShell中
- 24. fsockopen在JSP中相當於
- 25. 在Firefox中相當於CSSMatrix?
- 26. 在Qt中相當於dumpbin
- 27. 在Golang中相當於package.json
- 28. 在Firefox中相當於console.memory?
- 29. 相當於在PowerShell中
- 30. SH_DENY *相當於在Solaris中