Standard Windows Save-Dialog

This is a discussion on Standard Windows Save-Dialog within the Windows Programming forums, part of the Platform Specific Boards category; What are the values returned by the standard windows save-dialog? I need to know wether the user clicks 'ok' or ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    3

    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
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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, 10: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, 03:59 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM
  5. Displaying the Shut Down Windows dialog
    By SMurf in forum Windows Programming
    Replies: 2
    Last Post: 09-14-2001, 06:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21