Thread: Standard Windows Save-Dialog

  1. #1
    Registered User
    Join Date
    Jun 2004

    Standard Windows Save-Dialog

    What are the values returned by the standard windows save-dialog? I need to know wether the user clicks 'ok' or 'cancel'...

  2. #2
    Join Date
    Jan 2002
    If 'ok' is selected then the return value of GetSaveFileName is non-zero. If 'cancel' is selected or an error occurs then the return value is zero.

    Open & save as common dialogs.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. Save As Dialog Box
    By Mastadex in forum Windows Programming
    Replies: 10
    Last Post: 08-24-2006, 09:32 AM
  3. Getting the position of a dialog without parent on the screen
    By stormbringer in forum Windows Programming
    Replies: 1
    Last Post: 08-27-2003, 02:59 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Displaying the Shut Down Windows dialog
    By SMurf in forum Windows Programming
    Replies: 2
    Last Post: 09-14-2001, 05:52 PM