home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / oclsrc15.zip / OCL / Include / OLogo.hpp < prev    next >
C/C++ Source or Header  |  1996-08-12  |  3KB  |  95 lines

  1. // OCL - OS/2 Class Library
  2. // (c) Cubus 1995
  3. // All Rights Reserved
  4. // OLogo.hpp
  5.  
  6.  
  7. // program information logo
  8.  
  9. /*
  10.  * Redistribution and use in source and binary forms, with or without
  11.  * modification, are permitted provided that the following conditions
  12.  * are met:
  13.  * 1. Redistributions of source code must retain the above copyright
  14.  *    notice, this list of conditions and the following disclaimer.
  15.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  16.  *    endorse or promote products derived from this software
  17.  *    without specific prior written permission.
  18.  * 3. See OCL.INF for a detailed copyright notice.
  19.  *
  20.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  21.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30.  * SUCH DAMAGE.
  31.  */
  32.  
  33. // $Header: W:/Projects/OCL/Include/rcs/OLogo.hpp 1.50 1996/08/11 23:47:20 B.STEIN Release $
  34.  
  35. #ifndef OLOGO_INCLUDED
  36.   #define OLOGO_INCLUDED
  37.  
  38. #ifndef OSTRING_INCLUDED
  39.   #include <OString.hpp>
  40. #endif
  41.  
  42. #ifndef OFRAME_INCLUDED
  43.   #include <OFrame.hpp>
  44. #endif
  45.  
  46. #ifndef OBITMAP_INCLUDED
  47.   #include <OBitmap.hpp>
  48. #endif
  49.  
  50. #ifndef OPMEXCEPTION_INCLUDED
  51.   #include <OPMException.hpp>
  52. #endif
  53.  
  54. typedef class OLogo *pOLogo;
  55.  
  56.  
  57. class __CPP_EXPORT__ OLogo
  58.   : public OFrame 
  59. {
  60.  protected:
  61.    OString          bmpfile;
  62.    OBitmap          *bmp;
  63.    HMODULE          mod;
  64.    POINTL           dest;
  65.  
  66.  public:
  67.  
  68.    OLogo            (const HMODULE module,
  69.                      const ULONG bitmapID, 
  70.                      const ULONG cx, 
  71.                      const ULONG cy);
  72.  
  73.    OLogo            (const PSZ filename,
  74.                      const ULONG frameID,
  75.                      const ULONG cx,
  76.                      const ULONG cy);
  77.  
  78.    virtual
  79.       ~OLogo        ();
  80.  
  81.    virtual
  82.       PSZ isOfType  () const;
  83.  
  84.    OLogo&
  85.       showLogo      (const ULONG timeout = 0);         // show until destruction
  86.  
  87.    virtual 
  88.       BOOL OCommand (ULONG msg, MPARAM mp1, MPARAM mp2);
  89. };
  90.  
  91.  
  92. #endif // OLOGO_INCLUDED
  93.  
  94. // end of source
  95.