为什么我通过调用CMFCRibbonBar :: RemoveCategory()删除类别后清除了CMFCRibbonBar :: m_hWnd [英] why the CMFCRibbonBar::m_hWnd was cleared after I removed a category by calling CMFCRibbonBar::RemoveCategory()

查看:117
本文介绍了为什么我通过调用CMFCRibbonBar :: RemoveCategory()删除类别后清除了CMFCRibbonBar :: m_hWnd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

现在,我创建了一个MFC应用程序并使用了功能区UI,它看起来很酷,但是我遇到了一个问题,但是还没有找到答案.
看起来像这样:

我在功能区中添加了一些类别,当销毁框架窗口时,我尝试通过CMFCRibbonBar :: RemoveCategory()删除指定的类别,但是我发现CMFCRibbonBar :: m_hWnd之后在调试中将其更改为0,并在以后导致异常.谁能提供一些想法?

Dear all

now days, I created a MFC application and used the ribbon UI, it looks cool, but I met a problem and have not find the answer yet.
the problem looks like this:

   I added some categories to the ribbonbar, when destroying an frame window, I try to remove a specify category by  CMFCRibbonBar::RemoveCategory(), but i found that the CMFCRibbonBar::m_hWnd was changed to 0 after this in the debug, and exception caused later. can anyone provide some ideas? thanks in advance.

推荐答案

您是否知道为什么会发生这种情况.

Did you figure out why this happen.

此致.


这篇关于为什么我通过调用CMFCRibbonBar :: RemoveCategory()删除类别后清除了CMFCRibbonBar :: m_hWnd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆