Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / MFC

A better front end to WinDiff

Rate me:
Please Sign up or sign in to vote.
4.67/5 (26 votes)
18 Oct 2000CPOL 335.7K   10.1K   53  
A GUI front end to a handy utility
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.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

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

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

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

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif\r\n"
    "#include ""res\\RunWinDiff.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\0"
END

#endif    // APSTUDIO_INVOKED


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

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\windiff.ico"
IDI_COMPARE16           ICON    DISCARDABLE     "res\\idr_comp.ico"

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

IDD_RUNWINDIFF_DIALOG DIALOGEX 0, 0, 249, 87
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW | WS_EX_APPWINDOW
CAPTION " WinDiff UI"
FONT 8, "MS Sans Serif"
BEGIN
    COMBOBOX        IDC_FILE1,6,4,156,62,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP,WS_EX_ACCEPTFILES
    PUSHBUTTON      "",IDC_BROWSE1,165,1,20,18
    PUSHBUTTON      "",IDC_DIR1,186,1,20,18
    COMBOBOX        IDC_FILE2,6,27,156,65,CBS_DROPDOWN | CBS_AUTOHSCROLL | 
                    WS_VSCROLL | WS_TABSTOP,WS_EX_ACCEPTFILES
    PUSHBUTTON      "",IDC_BROWSE2,165,24,20,18
    PUSHBUTTON      "",IDC_DIR2,186,24,20,18
    CONTROL         "Outline only",IDC_OUTLINE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,12,48,51,11
    CONTROL         "Reuse",IDC_REUSE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    67,48,36,11
    PUSHBUTTON      "More",IDC_EXPAND_BUTTON,165,46,41,14,BS_LEFT
    DEFPUSHBUTTON   "",IDOK,219,1,20,18
    PUSHBUTTON      "",IDCANCEL,219,24,20,18
    EDITTEXT        IDC_WINDIFF,67,69,148,12,ES_AUTOHSCROLL,
                    WS_EX_ACCEPTFILES
    PUSHBUTTON      "",IDC_EXE_DIR,219,69,20,13
    CONTROL         "",IDC_LANDMARK,"Static",SS_BLACKRECT | NOT WS_VISIBLE,7,
                    65,200,1
    PUSHBUTTON      "",IDC_HELPBTN,219,45,20,18
    RTEXT           "WinDiff location:",IDC_STATIC,6,69,57,12,SS_CENTERIMAGE
    CONTROL         "Recursive",IDC_RECURSE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,107,48,52,11
END

IDD_HELPBOX DIALOGEX 0, 0, 160, 79
STYLE DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_POPUP | WS_CAPTION | 
    WS_SYSMENU
EXSTYLE WS_EX_TOOLWINDOW
CAPTION " WinDiffUI - Build: 061198-01"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    ICON            IDI_COMPARE16,IDI_COMPARE16,18,13,20,20
    CTEXT           "Copyright � 1998",IDC_STATIC,15,65,137,10,NOT WS_GROUP
    PUSHBUTTON      "",IDOK,129,14,20,18,BS_NOTIFY | WS_GROUP
    GROUPBOX        "",IDC_STATIC,1,0,157,78
    RTEXT           "Authors: ",IDC_STATIC,25,36,44,9,SS_NOPREFIX
    CTEXT           "WinDiff Interface",IDC_STATIC,49,19,61,9,SS_NOPREFIX
    LTEXT           "Chris Maunder",IDC_HYPER1,71,36,55,9,SS_NOPREFIX
    LTEXT           "Daniel Lyons",IDC_HYPER2,71,47,55,9,SS_NOPREFIX
END


#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// 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 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        BEGIN
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "RunWinDiff MFC Application\0"
            VALUE "FileVersion", "1, 0, 0, 1\0"
            VALUE "InternalName", "RunWinDiff\0"
            VALUE "LegalCopyright", "Copyright (C) 1998\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "RunWinDiff.EXE\0"
            VALUE "ProductName", "RunWinDiff Application\0"
            VALUE "ProductVersion", "1, 0, 0, 1\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_RUNWINDIFF_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 6
        RIGHTMARGIN, 244
        TOPMARGIN, 1
    END

    IDD_HELPBOX, DIALOG
    BEGIN
        BOTTOMMARGIN, 78
    END
END
#endif    // APSTUDIO_INVOKED

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


/////////////////////////////////////////////////////////////////////////////
// English (U.K.) resources

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

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

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_BROWSE256           ICON    DISCARDABLE     "res\\32x32x256_Browse.ico"
IDI_CANCEL256           ICON    DISCARDABLE     "res\\32x32x256_Cancel.ico"
IDI_OK256               ICON    DISCARDABLE     "res\\32x32x256_Ok.ico"
IDI_CLOSE               ICON    DISCARDABLE     "res\\close.ico"
IDI_FILE_OPEN           ICON    DISCARDABLE     "res\\32x32x256_File.ico"
IDI_HELP_OFF            ICON    DISCARDABLE     "res\\help_off.ico"
IDI_HELP_ON             ICON    DISCARDABLE     "res\\help_on.ico"
IDI_OPEN                ICON    DISCARDABLE     "res\\open.ico"

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

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_CBOX_TOOLTIP        "Enter the files or directories or use the drag and drop feature. "
    IDS_WINDIFF_DIR_TOOLTIP "Enter the working directory for WinDiff.exe"
    IDS_OUTLINE_TOOLTIP     "Open the files in outline mode only"
    IDS_DIR_TOOLTIP         "Select Directory"
    IDS_FILE_TOOLTIP        "Select Files  "
    IDS_CHECK_TOOLTIP       "Compare Files "
    IDS_EXIT_TOOLTIP        "Close Windiff "
    IDS_WINDIFF_BROWSE_TOOLTIP "Browse for the WinDiff executable"
    IDS_CHECK_REUSE         "Reuse an existing Windiff window"
    IDS_EXPAND_BUTTON       "Expand or contract the dialog"
    IDS_HELPBTN             "Info"
END

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



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif
#include "res\RunWinDiff.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif
/////////////////////////////////////////////////////////////////////////////
#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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder CodeProject
Canada Canada
Chris Maunder is the co-founder of CodeProject and ContentLab.com, and has been a prominent figure in the software development community for nearly 30 years. Hailing from Australia, Chris has a background in Mathematics, Astrophysics, Environmental Engineering and Defence Research. His programming endeavours span everything from FORTRAN on Super Computers, C++/MFC on Windows, through to to high-load .NET web applications and Python AI applications on everything from macOS to a Raspberry Pi. Chris is a full-stack developer who is as comfortable with SQL as he is with CSS.

In the late 1990s, he and his business partner David Cunningham recognized the need for a platform that would facilitate knowledge-sharing among developers, leading to the establishment of CodeProject.com in 1999. Chris's expertise in programming and his passion for fostering a collaborative environment have played a pivotal role in the success of CodeProject.com. Over the years, the website has grown into a vibrant community where programmers worldwide can connect, exchange ideas, and find solutions to coding challenges. Chris is a prolific contributor to the developer community through his articles and tutorials, and his latest passion project, CodeProject.AI.

In addition to his work with CodeProject.com, Chris co-founded ContentLab and DeveloperMedia, two projects focussed on helping companies make their Software Projects a success. Chris's roles included Product Development, Content Creation, Client Satisfaction and Systems Automation.

Comments and Discussions