home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / filedlg5 / source / tools.h < prev   
Encoding:
C/C++ Source or Header  |  1989-10-11  |  3.6 KB  |  66 lines

  1. /****************************************************************************
  2.  * TOOLS.H                                                                  *
  3.  *                                                                          *
  4.  *  This header file contains the declarations of the common tool           *
  5.  *  functions used internally by the open file and save file dialog         *
  6.  *  box functions.                                                          *
  7.  *                                                                          *
  8.  *                                                                          *
  9.  *  Modifications -                                                         *
  10.  *      17-Aug-1989 : Initial version.                                      *
  11.  *      11-Oct-1989 : Removed ErrMessageBox declaration.                    *
  12.  *                                                                          *
  13.  *  (c)Copyright 1989 Rick Yoder                                            *
  14.  ****************************************************************************/
  15.  
  16.  extern USHORT ParseFileName( PSZ pszSource,PSZ pszDest,PSZ pszSearch );
  17.     /* Purpose                  This function generates a fully
  18.      *                          qualified file name or search spec.
  19.      *                          from the input value, and changes
  20.      *                          the current drive and directory to
  21.      *                          the drive/directory listed in the
  22.      *                          input file name.
  23.      *
  24.      * Parameters               pszSource points to the input file name
  25.      *                          or search spec.
  26.      *
  27.      *                          pszDest points to the location where
  28.      *                          the fully qualified file name or
  29.      *                          search spec is to be stored.
  30.      *
  31.      *                          pszSearch points to the current file search
  32.      *                          search specification. This string is used
  33.      *                          when the input string is just a drive or
  34.      *                          a drive:\directory without a file name.
  35.      *
  36.      * Return Value             The return value is zero if the function
  37.      *                          is successful, otherwise it is an
  38.      *                          error value. The contents of the buffer
  39.      *                          pointed to by pszDest is undefined if
  40.      *                          an error occurs.
  41.      *
  42.      * Notes                    This function modifies the contents of the
  43.      *                          string pointed to by pszSource.
  44.      *
  45.      *                          This function will not detect an illegal
  46.      *                          file name or search specification.
  47.      */
  48.  
  49.  extern PSZ FitPathToBox( HWND hDlg,USHORT idText,PSZ pszPath );
  50.     /* Purpose                  This function modifies the input
  51.      *                          drive:\directory string so that it
  52.      *                          fits within the bounds of the specified
  53.      *                          static text control.
  54.      *
  55.      * Parameters               hDlg is a handle to the dialog box.
  56.      *
  57.      *                          idText is the static text control id.
  58.      *
  59.      *                          pszPath is a pointer to the drive:\directory
  60.      *                          string that is to be modified.
  61.      *
  62.      * Return Value             The function returns a pointer to the
  63.      *                          modified path string.
  64.      */
  65. /****************************************************************************/
  66.