home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / FILEDLG6.ZIP / SOURCE.ZIP / TOOLS.H < prev   
C/C++ Source or Header  |  1990-10-15  |  4KB  |  69 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.  *      11-Oct-1990 : Eliminated FitPathToBox function.                     *
  13.  *                    Added RightArrow and LeftArrow functions.             *
  14.  *                                                                          *
  15.  *  (c)Copyright 1990 Rick Yoder                                            *
  16.  ****************************************************************************/
  17.  
  18.  extern USHORT ParseFileName( PSZ pszSource,PSZ pszDest,PSZ pszSearch );
  19.     /* Purpose                  This function generates a fully
  20.      *                          qualified file name or search spec.
  21.      *                          from the input value, and changes
  22.      *                          the current drive and directory to
  23.      *                          the drive/directory listed in the
  24.      *                          input file name.
  25.      *
  26.      * Parameters               pszSource points to the input file name
  27.      *                          or search spec.
  28.      *
  29.      *                          pszDest points to the location where
  30.      *                          the fully qualified file name or
  31.      *                          search spec is to be stored.
  32.      *
  33.      *                          pszSearch points to the current file search
  34.      *                          search specification. This string is used
  35.      *                          when the input string is just a drive or
  36.      *                          a drive:\directory without a file name.
  37.      *
  38.      * Return Value             The return value is zero if the function
  39.      *                          is successful, otherwise it is an
  40.      *                          error value. The contents of the buffer
  41.      *                          pointed to by pszDest is undefined if
  42.      *                          an error occurs.
  43.      *
  44.      * Notes                    This function no longer modifies the contents
  45.      *                          of the string pointed to by pszSource.
  46.      *
  47.      *                          This function will now detect an illegal
  48.      *                          file name or search specification.
  49.      */
  50.  
  51. #if defined(INCL_ARROWS)
  52.  extern MRESULT LeftArrow( HWND hwnd,USHORT msg,MPARAM mp1,MPARAM mp2,
  53.                            HBITMAP hbmLeft,HBITMAP hbmLeftPressed,
  54.                            HBITMAP hbmLeftDisabled );
  55.     /* Purpose                  This function handles BN_PAINT
  56.      *                          messages sent from a left arrow button
  57.      *                          to the dialog box.
  58.      */
  59.  
  60.  extern MRESULT RightArrow( HWND hwnd,USHORT msg,MPARAM mp1,MPARAM mp2,
  61.                             HBITMAP hbmRight,HBITMAP hbmRightPressed,
  62.                             HBITMAP hbmRightDisabled );
  63.     /* Purpose                  This function handles BN_PAINT messages
  64.      *                          sent from a right arrow button to the
  65.      *                          dialog box.
  66.      */
  67. #endif
  68. /****************************************************************************/
  69.