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

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