|
|
1.1 root 1: /************************************************************************
2:
3: File: save.c
4:
5: Purpose:
6:
7: This file contains only one function that set the bDoOpenDlg global
8: variable to FALSE and then creates a dialog box with the same Callback
9: function as the DoOpenDialog() function does.
10:
11: Since GetOpenFileName() and GetSaveFileName() both use the
12: OPENFILENAME structure to create their dialogs, one dialog
13: proc and dialog box can handle both.
14:
15: Functions:
16:
17: - DoSaveDialog() -- Creates CDTEST's Open/Save dialog.
18:
19: ************************************************************************/
20:
21:
22: #include <windows.h>
23: #include <commdlg.h>
24: #include "cdtest.h"
25: #include "save.h"
26: #include "open.h"
27:
28:
29:
30:
31: /************************************************************************
32:
33: Function: DoSaveDialog(HWND)
34:
35: Purpose: To create the GetOpenFileName() and GetSaveFileName()
36: creation dialog.
37:
38: Returns: Nothing.
39:
40: Comments:
41:
42: GetOpenFileName() and GetSaveFileName() are similiar enough so that
43: the same dialog can be used to edit their creation structure elements,
44: so a global variable "bDoOpenDlg" keeps track of which one to create
45: when the user clicks the OK or Multithread buttons...
46:
47: ************************************************************************/
48:
49:
50:
51: void DoSaveDialog(HWND hwnd)
52: {
53: bDoOpenDlg = FALSE ;
54:
55: DialogBox(hInst, MAKEINTRESOURCE(ID_OPENDIALOG), hwnd, OpenFunc) ;
56:
57: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.