Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 C++ 文件中删除像 ON_UPDATE_COMMAND_UI 这样的 MFC 命令处理程序?我似乎无法通过 Dev Studio 找到方法。如果你知道怎么做,请解释一下。
我正在使用 VS 2008。
谢谢,迈克
要创建处理程序,您使用了属性窗格的消息列表中的下拉列表。当您没有处理程序时,列表有一个类似的条目<add> OnXxxUpdate。如果您已经有一个处理程序,下拉相同的列表将显示一个<delete> OnXxxUpdate-- 单击它。这只是删除了消息映射中的条目——您必须手动删除函数体。
<add> OnXxxUpdate
<delete> OnXxxUpdate