msf091.zip
include
columnprovider.rgs
contextmenu.rgs
contextmenu_sf.rgs
extension.rgs
extractimage_sf.rgs
infotip.rgs
infotip_sf.rgs
propertysheetext.rgs
propertysheetext_sf.rgs
shell32missing.def
shell32missing.lib
shellfolder.rgs
shellfolderwin98.rgs
vvvsample
Copy of sample1.vvv
menuicon.bmp
sample.def
sample.manifest
sample1.vvv
vvv.ico
vvvtest
sample.yyy
sample1.vvv
sample2.vvv
|
//
// (C) Copyright by Victor Derks <vba64@xs4all.nl>
//
// See README.TXT for the details of the software licence.
//
#include "stdafx.h"
#include "../include/shellpropsheetextimpl.h"
#include "propertypagevvv.h"
#include "propsheetextclsid.h"
#include "shellfolderclsid.h"
#include "resource.h"
class ATL_NO_VTABLE CShellPropSheetExt :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CShellPropSheetExt, &__uuidof(CShellPropSheetExt)>,
public IShellPropSheetExtImpl<CShellPropSheetExt>
{
public:
static HRESULT WINAPI UpdateRegistry(BOOL bRegister) throw()
{
return IShellPropSheetExtImpl<CShellPropSheetExt>::UpdateRegistry(
IDR_PROPERTYSHEETEXT, bRegister,
L"Sample PropertySheet Extension", __uuidof(CShellFolder), wszVVVExtension);
}
BEGIN_COM_MAP(CShellPropSheetExt)
COM_INTERFACE_ENTRY(IShellExtInit)
COM_INTERFACE_ENTRY(IShellPropSheetExt)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
CShellPropSheetExt()
{
RegisterExtension(tszVVVExtension);
}
// Purpose: called by MSF when it is time to add our pages to the propertysheet.
void OnAddPages(const CAddPage& addpage, const CStrings& filenames)
{
// Only add the page if only 1 file is selected and is of our own extension.
if (filenames.size() != 1 || ContainsUnknownExtension(filenames))
return;
addpage(CPropertyPageVVV::CreateInstance(filenames[0]));
}
};
OBJECT_ENTRY_AUTO(__uuidof(CShellPropSheetExt), CShellPropSheetExt)
|
By viewing downloads associated with this article you agree to the Terms of use 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
Victor lives in Nijmegen, the oldest city in The Netherlands.
He studied Applied Physics in Delft and now works for GE Healthcare.