|
////////////////////////////////////////////////////////////////////////////
// Copyright : Amit Dey 2002
//
// Email :amitdey@joymail.com
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is
// not sold for profit without the authors written consent, and
// providing that this notice and the authors name is included.
//
// This file is provided 'as is' with no expressed or implied warranty.
// The author accepts no liability if it causes any damage to your computer.
//
// Do expect bugs.
// Please let me know of any bugs/mods/improvements.
// and I will try to fix/incorporate them into this file.
// Enjoy!
//
// Description : Outlook2K Addin
////////////////////////////////////////////////////////////////////////////
// PropPage.cpp : Implementation of CPropPage
#include "stdafx.h"
#include "OutlookAddin.h"
#include "PropPage.h"
/////////////////////////////////////////////////////////////////////////////
// CPropPage
STDMETHODIMP CPropPage::GetControlInfo(LPCONTROLINFO pCI ) {
return S_OK;
};
// IOleObject
STDMETHODIMP CPropPage::SetClientSite(IOleClientSite *pClientSite){
HRESULT result;
// call default ATL implementation
result = IOleObjectImpl<CPropPage>::SetClientSite(pClientSite);
if (result != S_OK) return result;
// pClientSite may be NULL when container has being destructed
if (pClientSite != NULL) {
CComQIPtr<Outlook::PropertyPageSite> pPropertyPageSite(pClientSite);
result = pPropertyPageSite.CopyTo(&m_pPropPageSite);
}
m_fDirty = false;
return result;
}
STDMETHODIMP CPropPage::get_Dirty(VARIANT_BOOL *Dirty)
{
*Dirty = m_fDirty.boolVal;
return S_OK;
}
STDMETHODIMP CPropPage::Apply()
{
return S_OK;
}
STDMETHODIMP CPropPage::GetPageInfo(BSTR *HelpFile,LONG *HelpContext)
{
if (HelpFile == NULL)
return E_POINTER;
if (HelpContext == NULL)
return E_POINTER;
return E_NOTIMPL;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Amit Dey is a freelance programmer from Bangalore,India. Chiefly programming VC++/MFC, ATL/COM and PocketPC and Palm platforms. Apart from programming and CP, he is a self-taught guitar and keyboard player.
He can be contacted at visualcdev@hotmail.com