Click here to Skip to main content
12,244,103 members (47,624 online)
Click here to Skip to main content
Add your own
alternative version

Stats

294.2K views
9.5K downloads
53 bookmarked
Posted

A better front end to WinDiff

, 18 Oct 2000 CPOL
Rate this:
Please Sign up or sign in to vote.
A GUI front end to a handy utility
<!-- Download Links -->
  • Download source files - 65 Kb
  • Download executable - 20 Kb
  • <!-- Article image -->

    Sample Image - RunWinDiff.gif

    <!-- Main HTML starts here -->

    Introduction

    If you have ever used WinDiff you will be aware of its poor user interface for selecting files and directories. To this end I developed a simple application that acts as a front end to WinDiff and allows you to drag and drop files or directories, or browse for files and directories using the file and directory chooser dialogs.

    The program also remembers its last screen location, the files last compared and the whether or not the dialog was expanded or contracted. The sample demonstrates collapsable dialogs, window position persistance, and also demonstrates a variation of Chris Losinger's great CDropEdit class (in this case a drop-file combobox).

    New features

    • Extensive use has been made of Davide Calibro's flat buttons, thanks to Daniel Lyons who felt my original UI was a bit boring and gave it a major facelift. Thanks Daniel!
    • The combo's accept dropped files (previously used drop edit controls) and are auto-completing. They store the last 10 files entered and the drop width is modified each time a file is added in order to display as much as possible.
    • Directory pickers start from the last directory visited.
    • My ComboBoxEx class has been renamed - hopefully this will fix the VC6 compilation problem.

    Thanks to:

    • Chris Losinger - Drop Edit
    • Vladimir Kvashin, Girish Bharadwaj and Lars Klose - Directory picker class
    • Davide Calibro - Flat buttons
    • Daniel Lyons - UI work and a new approach to collapsable dialogs.
    • Klaus - suggested setting the initial directory of the directory pickers. No idea why I didn't do that in the first place!

    License

    This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Share

    About the Author

    Chris Maunder
    Founder CodeProject
    Canada Canada
    Chris is the Co-founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs The Code Project. He's been programming since 1988 while pretending to be, in various guises, an astrophysicist, mathematician, physicist, hydrologist, geomorphologist, defence intelligence researcher and then, when all that got a bit rough on the nerves, a web developer. He is a Microsoft Visual C++ MVP both globally and for Canada locally.

    His programming experience includes C/C++, C#, SQL, MFC, ASP, ASP.NET, and far, far too much FORTRAN. He has worked on PocketPCs, AIX mainframes, Sun workstations, and a CRAY YMP C90 behemoth but finds notebooks take up less desk space.

    He dodges, he weaves, and he never gets enough sleep. He is kind to small animals.

    Chris was born and bred in Australia but splits his time between Toronto and Melbourne, depending on the weather. For relaxation he is into road cycling, snowboarding, rock climbing, and storm chasing.

    You may also be interested in...

    Comments and Discussions

     
    GeneralProblem in selecting files ... Pin
    gontivos18-May-03 4:06
    membergontivos18-May-03 4:06 
    GeneralI prefer WinMerge Pin
    BlueBird25-Nov-02 4:57
    memberBlueBird25-Nov-02 4:57 
    GeneralRe: I prefer WinMerge Pin
    Tom Welch3-Mar-03 4:45
    memberTom Welch3-Mar-03 4:45 
    GeneralWindiff+ Pin
    BoostRules5-Aug-02 23:40
    memberBoostRules5-Aug-02 23:40 
    GeneralRe: Windiff+ Pin
    RancidCrabtree27-Mar-07 9:32
    memberRancidCrabtree27-Mar-07 9:32 
    GeneralIt doesn't work on WinXP Pin
    catiger18-Jul-02 4:47
    susscatiger18-Jul-02 4:47 
    GeneralRe: It doesn't work on WinXP Pin
    FrickaFrackaFirecracka SisBoomBah30-Apr-03 19:34
    memberFrickaFrackaFirecracka SisBoomBah30-Apr-03 19:34 
    GeneralRe: It doesn't work on WinXP Pin
    JFergulbops6-Oct-10 23:51
    memberJFergulbops6-Oct-10 23:51 
    GeneralThanx Pin
    Anonymous124-Jan-02 8:02
    memberAnonymous124-Jan-02 8:02 
    GeneralNice Work! Pin
    Robert Marquardt2-Dec-01 14:05
    memberRobert Marquardt2-Dec-01 14:05 
    GeneralWinDiff Pin
    George Poulose20-Oct-00 17:23
    sussGeorge Poulose20-Oct-00 17:23 
    GeneralPowerful alternative to WinDiff Pin
    Leo20-Oct-00 0:15
    sussLeo20-Oct-00 0:15 
    GeneralCommand line format for Active Movie Control Pin
    Duc Truong19-Oct-00 16:53
    sussDuc Truong19-Oct-00 16:53 
    Hi Chris,

    I first read this article on CodeGuru a year ago. And it inspired me to write a Philips Flat TV. What I did is to change resolution to 640X480 at startup and launch 4 bitmap windows that constitute a Philip TV image to cover up the whole screen, and and then call WinExec to spawn the MS Active Movie Control. The idea is to use my windows to surround the MS Movie Control leaving only the screen.

    Well, it works! I got myself a Philips Flat TV alright. Only hassle is everytime I pick an item from the Movie Control I have to click on the bottom window which will execute some code to find the other 3 windows and bring them to foreground to cover the Movie Control again.

    Moral of story is "if you don't like something, try to change it" I'd like to quote after Paul DiLascia: "In programming you can do anything."

    My question to you is "how do I pass in a filename to the Active Movie Control so that I will load up that file right away?". Right now I have to use the Movie's File Dialog to load the file I want. This is how I spawn the MS Active Movie
    // This will active the Movie Control and popup the File Dialog
    WinExec ("c:\\Windows\\RunDll32.exe amovie.ocx,RunDll", SW_SHOWNA) // This will popup the File Dialog

    How do you figurethe pattern of command line arguments to a window program?

    Thanks in advance,
    Duc Truong

    Duc Truong


    GeneralExcellent front end... Pin
    anon19-Oct-00 9:48
    sussanon19-Oct-00 9:48 
    GeneralRe: Excellent front end... Pin
    Chris Maunder19-Oct-00 11:10
    sussChris Maunder19-Oct-00 11:10 
    GeneralRe: Excellent front end... Pin
    Crispy23-Oct-00 12:03
    sussCrispy23-Oct-00 12:03 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web01 | 2.8.160426.1 | Last Updated 19 Oct 2000
    Article Copyright 2000 by Chris Maunder
    Everything else Copyright © CodeProject, 1999-2016
    Layout: fixed | fluid