|
//
// (C) Copyright by Victor Derks <vba64@xs4all.nl>
//
// See README.TXT for the details of the software licence.
//
#pragma once
// Note: very simple skeleton.
namespace MSF
{
template <typename T>
class ATL_NO_VTABLE IShellViewImpl :
public IShellView2
{
public:
IShellViewImpl()
{
ATLTRACE2(atlTraceCOM, 0, _T("IShellViewImpl::IShellViewImpl (instance=%p)\n"), this);
}
~IShellViewImpl()
{
ATLTRACE2(atlTraceCOM, 0, _T("IShellViewImpl::~IShellViewImpl (instance=%p)\n"), this);
}
// IShellView
HRESULT TranslateAccelerator(MSG* /*pmsg*/)
{
return S_FALSE; // Tell Explorer to handle the accelerator.
}
HRESULT EnableModeless(BOOL /*fEnable*/)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::EnableModeless"));
}
HRESULT UIActivate(UINT /*uState*/)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::UIActivate"));
}
HRESULT Refresh()
{
ATLTRACENOTIMPL(_T("IShellViewImpl::Refresh"));
}
HRESULT CreateViewWindow(IShellView *psvPrevious,
LPCFOLDERSETTINGS pfs,
IShellBrowser *psb,
RECT *prcView,
HWND *phWnd)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::CreateViewWindow"));
}
HRESULT DestroyViewWindow()
{
ATLTRACENOTIMPL(_T("IShellViewImpl::DestroyViewWindow"));
}
HRESULT GetCurrentInfo(LPFOLDERSETTINGS pfs)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::GetCurrentInfo"));
}
HRESULT AddPropertySheetPages(DWORD dwReserved, LPFNSVADDPROPSHEETPAGE pfn, LPARAM lparam)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::AddPropertySheetPages"));
}
HRESULT SaveViewState()
{
ATLTRACENOTIMPL(_T("IShellViewImpl::SaveViewState"));
}
HRESULT SelectItem(LPCITEMIDLIST pidlItem, SVSIF uFlags)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::SelectItem"));
}
HRESULT GetItemObject(UINT uItem, REFIID riid, void** ppv)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::GetItemObject"));
}
// IShellView2
HRESULT GetView(SHELLVIEWID* pvid, ULONG uView)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::GetView"));
}
HRESULT CreateViewWindow2(LPSV2CVW2_PARAMS lpParams)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::CreateViewWindow2"));
}
HRESULT HandleRename(LPCITEMIDLIST pidlNew)
{
ATLTRACENOTIMPL(_T("IShellViewImpl::HandleRename"));
}
HRESULT SelectAndPositionItem(LPCITEMIDLIST pidlItem, UINT uFlags,POINT *ppt);
{
ATLTRACENOTIMPL(_T("IShellViewImpl::SelectAndPositionItem"));
}
};
} // namespace MSF
|
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
Victor lives in Nijmegen, the oldest city in The Netherlands.
He studied Applied Physics in Delft and works Hitachi High-Tech Analytical Science.