Click here to Skip to main content
15,886,004 members
Articles / Desktop Programming / ATL

The Mini Shell Extension Framework – Part III

Rate me:
Please Sign up or sign in to vote.
4.96/5 (11 votes)
18 Sep 200516 min read 139.8K   1.4K   46  
Discussion of a small C++ framework to create Windows shell extensions (IShellFolderImpl).
//
// (C) Copyright by Victor Derks <vba64@xs4all.nl>
//
// See README.TXT for the details of the software licence.
//
#pragma once


#include <shlobj.h>


// Undocumented IShellFolderViewCB callback notifications.
// Most info was collected from public domain info on the internet.
const UINT SFVM_SELECTIONCHANGED  =  8;
const UINT SFVM_DRAWMENUITEM      =  9;
const UINT SFVM_MEASUREMENUITEM   = 10;
const UINT SFVM_EXITMENULOOP      = 11; // generated on win9x
const UINT SFVM_VIEWRELEASE       = 12;
const UINT SFVM_GETNAMELENGTH     = 13;
#ifndef SFVM_FSNOTIFY 
const UINT SFVM_FSNOTIFY          = 14; // defined in Feb 2003 SDK, but not in VC 2003 platform SDK.
#endif
const UINT SFVM_WINDOWCLOSING     = 16;
const UINT SFVM_LISTREFRESHED     = 17;
const UINT SFVM_WINDOWFOCUSED     = 18;
const UINT SFVM_CREATEVIEWWND2    = 20; // or SFVM_REGISTERCOPYHOOK ?
const UINT SFVM_COPYHOOKCALLBACK  = 21;
const UINT SFVM_UNMERGEFROMMENU   = 28;
const UINT SFVM_ADDINGOBJECT      = 29;
const UINT SFVM_REMOVINGOBJECT    = 30;
const UINT SFVM_GETCOMMANDDIR     = 33; // or SFVM_PREINVOKECOMMAND ?
const UINT SFVM_GETCOLUMNSTREAM   = 34;
const UINT SFVM_CANSELECTALL      = 35;
const UINT SFVM_ISSTRICTREFRESH   = 37;
const UINT SFVM_ISCHILDOBJECT     = 38;
const UINT SFVM_GETEXTVIEWS       = 40;
const UINT SFVM_FINDITEM          = 44;
const UINT SFVM_WNDMAIN           = 46;
const UINT SFVM_SORT              = 50;
const UINT SFVM_UNDOCUMENTED51    = 51; // SFVM_STANDARDVIEWS?
const UINT SFVM_UNDOCUMENTED56    = 56; // seen on win9x
const UINT SFVM_UNDOCUMENTED60    = 60; // seen on win9x
const UINT SFVM_GETPERSISTHISTORY = 67;

#ifndef SFVM_GETANIMATION
const UINT SFVM_GETANIMATION      = 68; // defined in Feb 2003 SDK, but not in VC 2003 platform SDK.
#endif

const UINT SFVM_WNDPROC                 = 74;
const UINT SFVM_SHOWWEBVIEW             = 75;
const UINT SFVM_GET_WEBVIEW_TEMPLATE    = 76; // Called by shell32::OnGetWebViewTemplate
const UINT SFVM_GET_CUSTOMVIEWINFO      = 77;
const UINT SFVM_UNDOCUMENTED78          = 78; // OnGetInitDefaults (called always during init, just before getsortdefaults)
const UINT SFVM_ENUMERATEDITEMS         = 79;
const UINT SFVM_GET_VIEW_DATA           = 80;
const UINT SFVM_GET_VIEWINFO_TEMPLATE   = 81; // Called by shell32::GetSFVMViewInfoTemplate
const UINT SFVM_GET_WEBVIEW_LAYOUT      = 82;
const UINT SFVM_GET_WEBVIEW_CONTENT     = 83;
const UINT SFVM_GET_WEBVIEW_TASKS       = 84;
const UINT SFVM_GET_WEBVIEW_THEME       = 86;
const UINT SFVM_GETDEFERREDVIEWSETTINGS = 92;

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.

License

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


Written By
Software Developer (Senior) Hitachi High-Tech Analytical Science
Netherlands Netherlands
Victor lives in Nijmegen, the oldest city in The Netherlands.
He studied Applied Physics in Delft and works Hitachi High-Tech Analytical Science.

Comments and Discussions