Click here to Skip to main content
11,637,176 members (69,540 online)
Click here to Skip to main content
Add your own
alternative version

The Mini Shell Extension Framework – Part III

, 18 Sep 2005 88.4K 1.1K 46
Discussion of a small C++ framework to create Windows shell extensions (IShellFolderImpl).
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
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// REGISTRY
//

IDR_INFOTIP             REGISTRY                "../include/infotip_sf.rgs"
IDR_CONTEXTMENU         REGISTRY                "../include/contextmenu_sf.rgs"
IDR_PROPERTYSHEETEXT    REGISTRY                "../include/propertysheetext_sf.rgs"
IDR_COLUMNPROVIDER      REGISTRY                "../include/columnprovider.rgs"
IDR_SHELLFOLDER         REGISTRY                "../include/shellfolder.rgs"
IDR_SHELLFOLDER_WIN98   REGISTRY                "../include/shellfolderwin98.rgs"
IDR_EXTRACTIMAGE        REGISTRY                "../include/extractimage_sf.rgs"

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""winres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID  RT_MANIFEST  ""sample.manifest""\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904e4"
        BEGIN
            VALUE "CompanyName", "Victor Derks"
            VALUE "FileDescription", "MSF VVV Sample Shell extension"
            VALUE "FileVersion", "1.0.0.1"
            VALUE "LegalCopyright", "(c) Victor Derks.  All rights reserved."
            VALUE "InternalName", "sample.dll"
            VALUE "OriginalFilename", "sample.dll"
            VALUE "ProductName", "MSF VVV Sample Shell extension"
            VALUE "ProductVersion", "1.0.0.1"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_PROPERTY_PAGE_VVV DIALOGEX 0, 0, 227, 215
STYLE DS_SETFONT | DS_MODALFRAME | DS_NOIDLEMSG | DS_3DLOOK | DS_FIXEDSYS | 
    WS_POPUP | WS_CAPTION
CAPTION "VVV"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
    LTEXT           "*Name:",IDC_STATIC_LABEL,7,12,48,9
    EDITTEXT        IDC_EDIT_LABEL,66,12,153,12,ES_AUTOHSCROLL
    LTEXT           "*FileCount:",IDC_STATIC_FILECOUNT,7,28,48,9
    EDITTEXT        IDC_EDIT_FILECOUNT,66,28,153,12,ES_AUTOHSCROLL | 
                    ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP
    CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDHORZ,5,60,216,1
END

IDD_PROPERTY_PAGE_ITEM DIALOGEX 0, 0, 227, 215
STYLE DS_SETFONT | DS_MODALFRAME | DS_NOIDLEMSG | DS_3DLOOK | DS_FIXEDSYS | 
    WS_POPUP | WS_CAPTION
CAPTION "General"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
    LTEXT           "*Name:",IDC_STATIC_ITEM_NAME,7,12,48,9
    EDITTEXT        IDC_EDIT_ITEM_NAME,66,12,153,12,ES_AUTOHSCROLL
    LTEXT           "*Size:",IDC_STATIC_ITEM_SIZE,7,28,48,9
    EDITTEXT        IDC_EDIT_ITEM_SIZE,66,28,153,12,ES_AUTOHSCROLL
    CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDHORZ,5,60,216,1
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_SHELLEXT_NAME       "Name"
    IDS_SHELLEXT_FILECOUNT  "Files"
    IDS_SHELLEXT_SIZE       "Size"
    IDS_SHELLEXT_ERROR_CAPTION "Error"
END

STRINGTABLE 
BEGIN
    IDS_SHELLEXT_LABEL      "Label"
END

STRINGTABLE 
BEGIN
    IDS_SHELLFOLDER_DELETE  "Are you sure that you want to delete '%1'?"
    IDS_SHELLFOLDER_MULTIPLE_DELETE 
                            "Are you sure that you want to delete these %1 items?"
    IDS_SHELLFOLDER_FILE_DELETE_CAPTION "Confirm File Delete"
    IDS_SHELLFOLDER_FILES_DELETE_CAPTION "Confirm Multiple File Delete"
    IDS_SHELLFOLDER_TYPE    "VVV File"
    IDS_SHELLFOLDER_FILE_IS_INVALID "Invalid VVV File"
    IDS_SHELLFOLDER_CANNOT_PERFORM 
                            "Unable to perform the requested operation, reason:\n\n"
	IDS_SHELLFOLDER_DFM_HELP_OPEN "Open"
END

STRINGTABLE 
BEGIN
    IDS_PROPERTYPAGE_UNABLE_TO_UPDATE 
                            "Unable to update changed settings, reason:\n\n"
END

STRINGTABLE 
BEGIN
    IDS_CONTEXTMENU_VVV_SUBMENU "VVV"
    IDS_CONTEXTMENU_VVV_SUBMENU_HELP "Special commands for VVV files"
    IDS_CONTEXTMENU_EDIT_WITH_NOTEPAD "&Open with notepad"
    IDS_CONTEXTMENU_EDIT_WITH_NOTEPAD_HELP "Open the VVV file with notepad"
    IDS_CONTEXTMENU_ABOUT_MSF "&About MSF"
    IDS_CONTEXTMENU_ABOUT_MSF_HELP 
                            "Show the version number of the MSF framework"
    IDS_CONTEXTMENU_CAPTION "VVV Sample"
    IDS_CONTEXTMENU_ABOUT_MASK "Build with MSF version %2d.%d"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Neutral (Sys. Default) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUSD)
#ifdef _WIN32
LANGUAGE LANG_NEUTRAL, SUBLANG_SYS_DEFAULT
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_MENUICON            BITMAP                  "menuicon.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON_VVV            ICON                    "vvv.ico"
#endif    // Neutral (Sys. Default) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID  RT_MANIFEST  "sample.manifest"

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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

Share

About the Author

Victor Derks
Software Developer (Senior) Schneider Electric
Netherlands Netherlands
Victor lives in Nijmegen, the oldest city in The Netherlands.
He studied Applied Physics in Delft and now works for GE Healthcare.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150728.1 | Last Updated 18 Sep 2005
Article Copyright 2005 by Victor Derks
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid