Click here to Skip to main content
15,891,976 members
Articles / Programming Languages / C++

Change File Extension Context Menu

Rate me:
Please Sign up or sign in to vote.
4.63/5 (15 votes)
7 May 2008CPOL5 min read 83.7K   918   29  
An easy and flexible way to change file extensions.
// Generated by ResEdit 1.3.6
// Copyright (C) 2006-2007
// http://www.resedit.net

#include "resource.h"
#include "winres.h"


//
// Bitmap resources
//
IDB_LINKBITMAP      BITMAP        ".\\Res\\helplink.bmp"
IDB_MENUBITMAP      BITMAP        ".\\Res\\ctxmenu.bmp"


//
// Icon resources
//
IDI_ICON1           ICON          ".\\Res\\dll.ico"
IDI_ICON2           ICON          ".\\Res\\info.ico"


//
// Dialog resources
//
IDD_ABOUTBOX DIALOGEX 0,0,174,64
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_VISIBLE | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "About"
FONT 8,"MS Shell Dlg 2",400,0,1
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,62,45,50,14
    GROUPBOX        "",IDC_STATIC,7,4,160,35
    CTEXT           "Change File Extension context menu\nversion 1.2.0.7\nT800-productions � 2008",IDC_STATIC,42,11,120,25
    ICON            IDI_ICON1,IDC_STATIC,13,13,21,20,SS_ICON
END

IDD_NEWEXTDLG DIALOGEX 0,0,185,66
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_VISIBLE | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Change file extension"
FONT 8,"MS Shell Dlg 2",400,0,1
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,68,45,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,128,45,50,14
    GROUPBOX        "",IDC_STATIC,7,4,170,33
    EDITTEXT        IDC_EDITCTRL,84,16,87,12,WS_GROUP | ES_AUTOHSCROLL
    CONTROL         "Enter new extension:",IDC_HELPLINK,"Static",NOT WS_GROUP | SS_LEFTNOWORDWRAP | SS_CENTERIMAGE,14,18,67,10
    ICON            IDI_ICON2,IDABOUT1,12,45,16,16,SS_REALSIZEIMAGE | SS_ICON | SS_NOTIFY
END


//
// String Table resources
//
STRINGTABLE
BEGIN
    IDS_PROJNAME                  "RenameExt"
END


//
// Accelerator resources
//
IDR_ACCELERATOR1 ACCELERATORS
BEGIN
    VK_ESCAPE,      ID_CANCEL, VIRTKEY
END


//
// Version Information resources
//
1 VERSIONINFO
    FILEVERSION     1,2,0,7
    PRODUCTVERSION  1,2,0,7
    FILEOS          VOS__WINDOWS32
    FILETYPE        VFT_DLL
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "Comments", "Provides context menu for changing file extensions\0"
            VALUE "CompanyName", "T800-productions\0"
            VALUE "FileDescription", "Provides context menu for changing file extensions\0"
            VALUE "FileVersion", "1,2,0,7\0"
            VALUE "InternalName", "ChangeExt\0"
            VALUE "LegalCopyright", "T800-productions � 2008\0"
            VALUE "OriginalFilename", "ChangeExt.DLL\0"
            VALUE "ProductName", "Change File extensions Dynamic Link Library\0"
            VALUE "ProductVersion", "1,2,0,7\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 1033, 1200
    END
END

IDR_OPENWITHCTXMENUEXT   REGISTRY      "RenameCtxMenuExt.rgs"

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Croatia Croatia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions