home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / filedlg5 / source / opendata.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-21  |  2.3 KB  |  39 lines

  1. /****************************************************************************
  2.  * OPENDATA.H                                                               *
  3.  *                                                                          *
  4.  *  This header file contains the definition of the data structure used     *
  5.  *  to hold static data for the open file and find file dialog boxes.       *
  6.  *                                                                          *
  7.  *  Modifications --                                                        *
  8.  *      21-Sep-1989 : Initial version.                                      *
  9.  *                                                                          *
  10.  * (c)Copyright 1989 Rick Yoder                                             *
  11.  ****************************************************************************/
  12.  
  13.     typedef struct {
  14.         PSZ     pszTitle;           // dialog box title
  15.         PSZ     pszIns;             // dialog box instructions
  16.         void (CALLBACK *pfnHelpProc)(HWND hDlg); // ptr to help procedure
  17.         PSZ     pszFile;            // ptr to name of opened file
  18.         PHFILE  phf;                // ptr to file handle
  19.         ULONG   ulFileSize;         // initial file size
  20.         PUSHORT pusAction;          // action taken on open
  21.         USHORT  usAttribute;        // file attribute
  22.         USHORT  fsOpenFlags;        // open flags
  23.         USHORT  fsOpenMode;         // open mode
  24.         ULONG   ulReserved;         // reserved
  25.         PSZ     pszShowSpec;        // file spec of files to be listed
  26.         USHORT  usShowAttr;         // attributes of files to be listed
  27.         USHORT  usMaxPathLen;       // maximum path name length
  28.         PSZ     pszScratch;         // ptr to scratch data area
  29.         HMODULE hmod;               // handle to resource module
  30.         USHORT  usSelectDrive;      // current selected item in drive list box
  31.         USHORT  usSelectDir;        // current selected item in dir list box
  32.         USHORT  usSelectFile;       // current selected item in file list box
  33.         USHORT  usSelectFind;       // current selected item in find list box
  34.         USHORT  usFocus;            // control to which focus is to be returned
  35.                                     //  after an unsuccesful open attempt.
  36.         } DATA;
  37.  
  38.     typedef DATA * PDATA;
  39.