CFileDialog AddIn


Click here for larger image

Environment: Visual Studio 6

Description

I really liked the idea of the CFileDialog macro posted here, but the interface was somewhat lacking versus the nice addin's I've gotten in the past. So using this idea I created an addin for myself and thought I would share. I tried to use the same type of interface as that of the MessageBox addin that is so nice and posted here. Enjoy!

Usage

Set all options you want then click "Copy to Clipboard" and paste into your .cpp file.

Example

Using the settings in the above image will output:
CFileDialog cFileDlg (
   TRUE, 
   (LPCTSTR)NULL, 
   _T("Initial Filename"), 
   OFN_ENABLESIZING|OFN_ENABLEHOOK|OFN_EXPLORER|OFN_LONGNAMES|
           OFN_OVERWRITEPROMPT|OFN_CREATEPROMPT, 
   _T("All Files (*.*)|*.*|"),
   this );
   cFileDlg.m_ofn.lpstrTitle = _T("Your Title Here!");
   // TODO: set the hook function
   //cFileDlg.m_ofn.lpfnHook = ;

Installing the Add-In

To install the add-in, follow these steps:
  1. Unzip the .dll file to the addin folder (default is \program files\microsoft visual studio\Common\MSDev98\AddIns)
  2. Go to Tools menu, Customize
  3. Go to the "Add-ins and Macro Files" tab
  4. Select the "CFileDialog AddIn" add-in and assign it to a hot key or put on a toolbar

Downloads

Download compiled dll - [18] Kb
Download source - [26] Kb


Comments

  • please send basic add-ins & macro

    Posted by Legacy on 10/24/2001 12:00am

    Originally posted by: Meganathan

    please send basic how to open macaro in add-ins simple once more programs send in my email id any way this program is nice. send more programs
    regards
    mega

    Reply
  • Please re-submit the SRC file zip (corrupted)

    Posted by Legacy on 05/23/2001 12:00am

    Originally posted by: Jake

    Since the dsp file is corrupted, one must reverse engineer the project to get it to compile; not too convenient.
    Regards/j

    Reply
  • A few changes

    Posted by Legacy on 05/22/2001 12:00am

    Originally posted by: anon

    Change you literal strings to the _T("xxxx") macros.
    Add a field to specify the variable name for the dialog so developer can use another name insted of cFileDlg.

    Reply
  • Also having trouble unzipping

    Posted by Legacy on 05/21/2001 12:00am

    Originally posted by: Doug Knudson

    I also am unable to get the source project to unzip without crc errors and missing files. Any ideas?

    Reply
  • Problem with zipped source?

    Posted by Legacy on 05/19/2001 12:00am

    Originally posted by: Steve D.

    I get an error when unzipping the source code, and when its done the .dsp file is missing. Anyone else have a problem with it?

    Thanks,

    Steve

    Reply
  • Nice :-)

    Posted by Legacy on 05/18/2001 12:00am

    Originally posted by: Christian Skovdal Andersen

    Very nice,

    I'm glad that my little macro inspired you to do this very cool tool.

    Maybe you should submit it to CodeProject? (http://www.codeproject.com)

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • The impact of a data loss event can be significant. Real-time data is essential to remaining competitive. Many companies can no longer afford to rely on a truck arriving each day to take backup tapes offsite. For most companies, a cloud backup and recovery solution will eliminate, or significantly reduce, IT resources related to the mundane task of backup and allow your resources to be redeployed to more strategic projects. The cloud - can now be comfortable for you – with 100% recovery from anywhere all …

  • You probably have several goals for your patient portal of choice. Is "community" one of them? With a bevy of vendors offering portal solutions, it can be challenging for a hospital to know where to start. Fortunately, YourCareCommunity helps ease the decision-making process. Read this white paper to learn more. "3 Ways Clinicians can Leverage a Patient Portal to Craft a Healthcare Community" is a published document owned by www.medhost.com

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds