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

  1. // OCL - OS/2 Class Library
  2. // (c) Cubus 1995
  3. // All Rights Reserved
  4. // OFrame.hpp
  5.  
  6. /*
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted provided that the following conditions
  9.  * are met:
  10.  * 1. Redistributions of source code must retain the above copyright
  11.  *    notice, this list of conditions and the following disclaimer.
  12.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  13.  *    endorse or promote products derived from this software
  14.  *    without specific prior written permission.
  15.  * 3. See OCL.INF for a detailed copyright notice.
  16.  *
  17.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  18.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  19.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  20.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  21.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  22.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  23.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  24.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  25.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  26.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  27.  * SUCH DAMAGE.
  28.  */
  29.  
  30. // $Header: E:/Projects/OCL/Include/rcs/OFrame.hpp 1.12 1996/01/16 10:12:19 B.STEIN Release B.STEIN $
  31.  
  32. #ifndef OFRAME_INCLUDED
  33.   #define OFRAME_INCLUDED
  34.  
  35. #ifndef OWINDOW_INCLUDED
  36.   #include <OWindow.hpp>
  37. #endif
  38.  
  39. #ifndef OPMEXCEPTION_INCLUDED
  40.   #include <OPMException.hpp>
  41. #endif
  42.  
  43. typedef class OFrame *pOFrame;
  44.  
  45.  
  46. class __CPP_EXPORT__ OFrame
  47.   : public OWindow
  48. {
  49.  public:
  50.    HWND                 frame;
  51.    HWND                 client;
  52.  
  53. // ctor/dtor
  54.  
  55.    OFrame              (const ULONG id,
  56.                         const ULONG Style = FCF_STANDARD,
  57.                         const ULONG winbits = CS_SAVEBITS | CS_SIZEREDRAW);
  58.  
  59.    virtual
  60.       ~OFrame          ();
  61.  
  62.    virtual
  63.       PSZ isOfType     () const;
  64.  
  65.    OFrame&
  66.       createFrame      (PSZ className);
  67.  
  68.    virtual OFrame
  69.       &setSizePosFrame (const HWND behind,
  70.                         SWP dimensions,
  71.                         const ULONG flag),
  72.       &trackFrame      (), 
  73.       &showFrame       (),
  74.       &hideFrame       (),
  75.       ¢erFrame     ();
  76.  
  77.    OFrame
  78.       &postQuit        (),
  79.       &destroyFrame    (),
  80.       &setWindowText   (PCSZ text);
  81.  
  82.  
  83. // CommandHandler
  84. // this default handler handles font and color configuration by drag and drop
  85.  
  86.    virtual 
  87.       BOOL OCommand   (ULONG msg, MPARAM mp1, MPARAM mp2);
  88. };
  89.  
  90.  
  91. #endif // OFRAME_INCLUDED
  92.  
  93. // end of source
  94.