File:  [WindowsNT SDKs] / mstools / samples / cdtest / save.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:23:40 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

/************************************************************************

  File: save.c

  Purpose:

    This file contains only one function that set the bDoOpenDlg global
    variable to FALSE and then creates a dialog box with the same Callback
    function as the DoOpenDialog() function does.

    Since GetOpenFileName() and GetSaveFileName() both use the
    OPENFILENAME structure to create their dialogs, one dialog
    proc and dialog box can handle both.

  Functions:

    - DoSaveDialog()    -- Creates CDTEST's Open/Save dialog.

************************************************************************/


#include <windows.h>
#include <commdlg.h>
#include "cdtest.h"
#include "save.h"
#include "open.h"




/************************************************************************

  Function: DoSaveDialog(HWND)

  Purpose: To create the GetOpenFileName() and GetSaveFileName()
           creation dialog.

  Returns: Nothing.

  Comments:

    GetOpenFileName() and GetSaveFileName() are similiar enough so that
    the same dialog can be used to edit their creation structure elements,
    so a global variable "bDoOpenDlg" keeps track of which one to create
    when the user clicks the OK or Multithread buttons...

************************************************************************/



void DoSaveDialog(HWND hwnd)
{
  bDoOpenDlg = FALSE ;

  DialogBox(hInst, MAKEINTRESOURCE(ID_OPENDIALOG), hwnd, OpenFunc) ;

}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.