⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iproppsi.cpp

📁 英文版的 想要的话可以下载了 为大家服务
💻 CPP
字号:
/*
 * IPROPPSI.CPP
 *
 * Template IPropertyPageSite interface implementation.
 *
 * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
 *
 * Kraig Brockschmidt, Microsoft
 * Internet  :  kraigb@microsoft.com
 * Compuserve:  >INTERNET:kraigb@microsoft.com
 */


#include "iproppsi.h"


/*
 * CImpIPropertyPageSite::CImpIPropertyPageSite
 * CImpIPropertyPageSite::~CImpIPropertyPageSite
 *
 * Parameters (Constructor):
 *  pObj            LPVOID of the object we're in.
 *  pUnkOuter       LPUNKNOWN to which we delegate.
 */

CImpIPropertyPageSite::CImpIPropertyPageSite(LPVOID pObj
    , LPUNKNOWN pUnkOuter)
    {
    m_cRef=0;
    m_pObj=pObj;
    m_pUnkOuter=pUnkOuter;
    return;
    }

CImpIPropertyPageSite::~CImpIPropertyPageSite(void)
    {
    return;
    }



/*
 * CImpIPropertyPageSite::QueryInterface
 * CImpIPropertyPageSite::AddRef
 * CImpIPropertyPageSite::Release
 *
 * Purpose:
 *  Delegating IUnknown members for CImpIPropertyPageSite.
 */

STDMETHODIMP CImpIPropertyPageSite::QueryInterface(REFIID riid
    , LPVOID *ppv)
    {
    return m_pUnkOuter->QueryInterface(riid, ppv);
    }

STDMETHODIMP_(ULONG) CImpIPropertyPageSite::AddRef(void)
    {
    ++m_cRef;
    return m_pUnkOuter->AddRef();
    }

STDMETHODIMP_(ULONG) CImpIPropertyPageSite::Release(void)
    {
    --m_cRef;
    return m_pUnkOuter->Release();
    }



/*
 * CImpIPropertyPageSite::OnStatusChange
 *
 * Purpose:
 *  Informs the page site that the status of its page has changed
 *  according to the flags in dwFlags:
 *      PROPPAGESTATUS_DIRTY        A value was changed.
 *      PROPPAGESTATUS_VALIDATE     It's an appropriate time to
 *                                  validate and apply changes.
 *
 * Parameters:
 *  dwFlags         DWORD identifying the changes.
 */

STDMETHODIMP CImpIPropertyPageSite::OnStatusChange(DWORD dwFlags)
    {
    return ResultFromScode(E_NOTIMPL);
    }



/*
 * CImpIPropertyPageSite::GetLocaleID
 *
 * Purpose:
 *  Retrieves the LCID for the page frame, if the page wants to
 *  localize to this locale.
 *
 * Parameters:
 *  plcid           LCID * in which to store the LCID.
 */

STDMETHODIMP CImpIPropertyPageSite::GetLocaleID(LCID *plcid)
    {
    return ResultFromScode(E_NOTIMPL);
    }



/*
 * CImpIPropertyPageSite::GetPageContainer
 *
 * Purpose:
 *  Retrieves a pointer to the property frame.
 *
 * Parameters:
 *  ppUnk           IUnknown ** in which to return the frame's
 *                  IUnknown pointer.
 */

STDMETHODIMP CImpIPropertyPageSite::GetPageContainer(IUnknown **ppUnk)
    {
    *ppUnk=NULL;
    return ResultFromScode(E_NOTIMPL);
    }




/*
 * CImpIPropertyPageSite::TranslateAccelerator
 *
 * Purpose:
 *  Provides the page site with the oportunity to process messages.
 *
 * Parameters:
 *  pMsg            LPMSG containing the message of the accelerator.
 */

STDMETHODIMP CImpIPropertyPageSite::TranslateAccelerator(LPMSG lpMsg)
    {
    return ResultFromScode(E_NOTIMPL);
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -