home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / filedlg5 / source / static.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-19  |  3.5 KB  |  69 lines

  1. /****************************************************************************
  2.  * STATIC.C --  Static data used by file open/save dialog box               *
  3.  *              procedures. All data defined in this module is              *
  4.  *              stored in the data segment STATICDATA.                      *
  5.  *                                                                          *
  6.  *                                                                          *
  7.  * Modifications --                                                         *
  8.  *      08-Sep-1989 : Initial version.                                      *
  9.  *      11-Oct-1989 : Changed to DLL version of ErrMessageBox function.     *
  10.  *      19-Nov-1989 : Added szUnnamed.
  11.  *                                                                          *
  12.  * (c)Copyright 1989 Rick Yoder                                             *
  13.  ****************************************************************************/
  14.  
  15.     #define INCL_WINDIALOGS
  16.     #include <os2.h>
  17.     #include <errmsg.h>
  18.     #include "static.h"
  19.  
  20. /****************************************************************************
  21.  *  Constant data common to all functions                                   *
  22.  ****************************************************************************/
  23.     CHAR szSlash[] = "\\";
  24.     CHAR szStarDotStar[] = "*.*";
  25.     CHAR szDLLName[] = "FILEDLG";
  26. /****************************************************************************/
  27.  
  28.  
  29. /****************************************************************************
  30.  *  Constant data used by FitPathToBox function                              *
  31.  ****************************************************************************/
  32.     CHAR szFitReplace[] = ":\\...";
  33. /****************************************************************************/
  34.  
  35.  
  36. /****************************************************************************
  37.  *  Constant data used in the file save dialog box functions                *
  38.  ****************************************************************************/
  39.     CHAR szDefSaveTitle[] = "Save File";
  40.     CHAR szDefSaveIns[] = "Type file name.";
  41.     CHAR szOverwriteMsg[] = "File already exists. Overwrite?";
  42.     CHAR szUnnamed[] = "UNNAMED";
  43. /****************************************************************************/
  44.  
  45.  
  46. /****************************************************************************
  47.  *  Constant data used in the file open dialog box functions.               *
  48.  ****************************************************************************/
  49.     CHAR szDefOpenTitle[] = "Open File";
  50.     CHAR szDefOpenIns[] = "Select file or type filename.";
  51.     CHAR szSearchTitle[] = "Search for a File";
  52.     CHAR szWildCardChars[] = "*?";
  53.     CHAR szListBoxFull[] = "List box is full.";
  54.     CHAR szNoFilesFnd[] = "No files found.";
  55. /****************************************************************************/
  56.  
  57.  
  58. /****************************************************************************
  59.  *  Application defined error/information message data                      *
  60.  ****************************************************************************/
  61.     ERRORMSG appMsgList[] = {
  62.         OVERWRITE_MSG, MB_YESNOCANCEL|MB_ICONQUESTION, szOverwriteMsg,
  63.         LISTBOX_FULL, MB_OK|MB_ICONEXCLAMATION, szListBoxFull,
  64.         NO_FILES_FOUND, MB_OK|MB_ICONEXCLAMATION, szNoFilesFnd
  65.         };
  66.  
  67.     USHORT appMsgCount = sizeof(appMsgList) / sizeof(ERRORMSG);
  68. /****************************************************************************/
  69.