home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / SAMPLES / MCITEST / DLGOPEN.H_ / DLGOPEN.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.2 KB  |  38 lines

  1. #include "resource.h"
  2.  
  3. int FAR PASCAL OpenFileDialog(
  4.         HWND    hwndParent,     // parent window
  5.         LPSTR   lszTitle,       // Optional dlgbox caption
  6.         LPSTR   lszExtension,   // Optional File extensions
  7.         DWORD   dwFlags,        // Flag values
  8.         LPSTR   lszStatic,      // Optional static string
  9.         LPSTR   lszPath,        // open file struct
  10.         WORD    cbBufLen);      // length of buffer
  11. /*
  12.  *  flags:
  13.  *     The LOWORD is the standard FileOpen() flags
  14.  *     the HIWORD can be any of the following
  15.  */
  16. #define DLGOPEN_MUSTEXIST       0x00010000
  17. #define DLGOPEN_NOSHOWSPEC      0x00020000
  18. #define DLGOPEN_SAVE            0x00040000
  19.  
  20. /*
  21.  *  Return values:
  22. */
  23. #define DLGOPEN_CANCEL          -2
  24. #define DLGOPEN_NOTFOUND        -1
  25.  
  26. //      Options particular to the "dump" dialog.
  27.  
  28. #define DLGOPEN_DUMP_OPTIONS    106
  29. #define DLGOPEN_DUMP_FULL       107
  30. #define DLGOPEN_DUMP_LEAVES     108
  31.  
  32. /*************************************
  33.  *                                   *
  34.  *  YOU MUST EXPORT THIS FUNCTION!!  *
  35.  *                                   *
  36.  *************************************/
  37. BOOL FAR PASCAL  __export DlgfnOpen();
  38.