代码拉取完成,页面将自动刷新
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// This interface should be returned by the application during command creation.
// For the purpose of this sample, it has a barebone implementation.
// Also the same command handler is returned for every command.
//
#pragma once
// This is a generic command handler used by every command in this sample.
//
// CLASS: CCommandHandler : IUICommandHandler
//
// PURPOSE: Implements interface IUICommandHandler.
//
// COMMENTS:
//
// This is a generic command handler used by every command in this sample.
// IUICommandHandler should be returned by the application during command creation.
// For the purpose of this sample, it has a barebone implementation.
// Also the same command handler is returned for every command.
//
class CCommandHandler : public IUICommandHandler // Command handlers must implement IUICommandHandler.
{
public:
// Static method to create an instance of the object.
static HRESULT CreateInstance(IUICommandHandler **ppCommandHandler);
// IUnknown methods.
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
STDMETHODIMP QueryInterface(REFIID iid, void** ppv);
// IUICommandHandler methods
STDMETHOD(UpdateProperty)(UINT nCmdID,
REFPROPERTYKEY key,
const PROPVARIANT* ppropvarCurrentValue,
PROPVARIANT* ppropvarNewValue);
STDMETHOD(Execute)(UINT nCmdID,
UI_EXECUTIONVERB verb,
const PROPERTYKEY* key,
const PROPVARIANT* ppropvarValue,
IUISimplePropertySet* pCommandExecutionProperties);
private:
CCommandHandler() : m_cRef(1) {}
LONG m_cRef; // Reference count.
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。