home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / sysba021.zip / SRC.ZIP / sysbar2 / sysbar2_.h < prev    next >
C/C++ Source or Header  |  2003-01-03  |  4KB  |  116 lines

  1. /*
  2.  
  3.   SysBar/2 Utility Set  version 0.21
  4.  
  5.   SYSBAR2.DLL internal definitions
  6.  
  7.   ..................................................................
  8.  
  9.   Copyright (c) 1995-1999  Dmitry I. Platonoff
  10.                            All rights reserved
  11.  
  12.                          dplatonoff@canada.com
  13.  
  14.   ..................................................................
  15.  
  16.   LICENSE
  17.   ~~~~~~~
  18.   Redistribution and use in source and binary forms, with or without
  19.   modification, are permitted provided that the following conditions
  20.   are met:
  21.  
  22.   1. Redistributions of source code must retain the above copyright
  23.      notice, this list of conditions and the following disclaimer.
  24.  
  25.   2. Redistributions in binary form must reproduce the above
  26.      copyright notice, this list of conditions and the following
  27.      disclaimer in the documentation and/or other materials provided
  28.      with the distribution.
  29.  
  30.   3. Redistributions of any form whatsoever, as well as all
  31.      advertising materials mentioning features or use of this
  32.      software (if any), must include the following acknowledgment:
  33.      "This product includes software developed by Dmitry I. Platonoff".
  34.  
  35.   4. The names "SysBar/2" and "Dmitry I. Platonoff" must not be
  36.      used to endorse or promote products derived from this software
  37.      without prior written permission. For such permission, please
  38.      contact dplatonoff@canada.com.
  39.  
  40.   5. Products derived from this software may not be called
  41.      "SysBar/2" nor may "Dmitry I. Platonoff" appear in their
  42.      contributor lists without prior written permission.
  43.  
  44.   ..................................................................
  45.  
  46.   DISCLAIMER
  47.   ~~~~~~~~~~
  48.   THIS SOFTWARE IS PROVIDED BY THE AUTHOR OR CONTRIBUTORS "AS IS"
  49.   AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  50.   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  51.   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  52.   AUTHOR OR THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  53.   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  54.   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  55.   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  56.   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  57.   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  58.   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  59.   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  60.  
  61. */
  62.  
  63. #include "ffile.h"
  64.  
  65.  
  66. #define SB2c_Filler   CLR_DARKGRAY
  67. #define SB2c_Brighter CLR_PALEGRAY
  68. #define SB2c_Darker   CLR_BLACK
  69. //#define SB2c_Filler   CLR_PALEGRAY
  70. //#define SB2c_Brighter CLR_WHITE
  71. //#define SB2c_Darker   CLR_DARKGRAY
  72.  
  73.  
  74. // INI-style file reader
  75. class __export IniFile : public ffile
  76. {
  77. public:
  78.   IniFile( char* pszFilename, const char* pszMode = "rt" ) :  //Constructor
  79.     ffile( pszFilename, pszMode ) {}                 //to open a file
  80.  
  81.   char* Read( void );  //Method to read a line from the file and strip
  82.                //extra spaces & comments
  83.  
  84.            //Method to get the first value of entry from specified section
  85.   char* Get( char* pszSection, char* pszEntry, char* pszDefault = NULL );
  86.  
  87.   char* GetNext( char* pszEntry );  //Get the next value of the same entry
  88.  
  89. };
  90.  
  91.  
  92.  
  93. class __export DescWindow
  94. {
  95.   char *pszText;
  96. public:
  97.  
  98.   HWND hwDescFrame;
  99.   HWND hwDescClient;
  100.   int iDescX;
  101.   int iDescY;
  102.   int iDescWidth;
  103.   int iDescHeight;
  104.  
  105.   DescWindow( void );
  106.   ~DescWindow( void );
  107.   HWND CreateWindow( char *pszClassName );
  108.   void SetText( char *pszText );
  109.   void Hide( void );
  110.   void AdjustSize( FATTRS *pF, HWND hwnd );
  111.   void AdjustPos( int x, int y, int dx, int dy, int bVertical );
  112.   void MoveTo( int x, int y );
  113.   void Paint( FATTRS *pF, HWND hwnd );
  114. };
  115.  
  116.