Thread: How to modify file open/save dialog?

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    245

    How to modify file open/save dialog?

    Does anyone have sample code, or document on how to modify the standard file open/save dialogs? I'd like to add a checkbox to a save dialog so the user can choose whether or not they'd like the checksum calculated before saving. I know it can be done as I've seen other apps do it, but not quite sure how.

  2. #2
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    basically you need to supply a template dialog and a
    hookprocedure to your OPENFILENAME structure.
    I found this quite informative. Click on "Open and Save As dialog boxes" in the left frame. That'll take you to customising an explorer-type of
    'Save As' - dialog aswell as a description
    on customising old-style-boxes.

    /btq
    ...viewlexx - julie lexx

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    70
    I have never done this but I know something about this. You can customise "File Open\Save Dialog" by creating a class which inherit CFileDialog.
    Chintan R Naik

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    Hmmm, seems too involved, so I think I'll just add another menu item instead. Thanks for the pointers though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 10:47 AM
  2. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  3. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  4. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  5. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM