代码拉取完成,页面将自动刷新
#pragma once
//
// CLASS: CApplication : IUIApplication
//
// PURPOSE: Implements interface IUIApplication that defines methods
// required to manage Framework events.
//
// COMMENTS:
//
// CApplication implements the IUIApplication interface which is required for any ribbon application.
// IUIApplication contains callbacks made by the ribbon framework to the application
// during various updates like command creation/destruction and view state changes.
//
class CApplication : public IUIApplication // Applications must implement IUIApplication.
{
public:
// Static method to create an instance of the object.
static HRESULT CreateInstance(IUIApplication **ppApplication);
// IUnknown
IFACEMETHODIMP QueryInterface(REFIID iid, void** ppv);
IFACEMETHODIMP_(ULONG) AddRef();
IFACEMETHODIMP_(ULONG) Release();
// IUIApplication methods
STDMETHOD(OnCreateUICommand)(UINT nCmdID,
UI_COMMANDTYPE typeID,
IUICommandHandler** ppCommandHandler);
STDMETHOD(OnViewChanged)(UINT viewId,
UI_VIEWTYPE typeId,
IUnknown* pView,
UI_VIEWVERB verb,
INT uReasonCode);
STDMETHOD(OnDestroyUICommand)(UINT32 commandId,
UI_COMMANDTYPE typeID,
IUICommandHandler* commandHandler);
private:
CApplication()
: m_cRef(1)
, m_pCommandHandler(NULL)
{
}
~CApplication()
{
if (m_pCommandHandler)
{
m_pCommandHandler->Release();
m_pCommandHandler = NULL;
}
}
LONG m_cRef; // Reference count.
IUICommandHandler * m_pCommandHandler; // Generic Command Handler
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。