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

  1. // OCL - OS/2 Class Library
  2. // (c) Cubus 1995
  3. // All Rights Reserved
  4. // OAutoRadioButton.cpp
  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/Source/rcs/OAutoRadioButton.cpp 1.50 1996/08/11 23:49:07 B.STEIN Release $
  33.  
  34. #define __OCL_SOURCE__
  35.  
  36. #define OINCL_OSTRING
  37. #define OINCL_BASE
  38.  
  39. #include <ocl.hpp>
  40. #include <OAutoRadioButton.hpp>
  41.  
  42.  
  43. OAutoRadioButton::OAutoRadioButton(ULONG   id,
  44.                                    HWND    Parent,
  45.                                    ULONG   x,
  46.                                    ULONG   y,
  47.                                    ULONG   cx,
  48.                                    ULONG   cy,
  49.                                    ULONG   extraStyle)
  50.      : ORadioButton(id, Parent, x, y, cx, cy)
  51. {
  52.  style = BS_AUTORADIOBUTTON | extraStyle;
  53. }
  54.  
  55.  
  56. OAutoRadioButton::OAutoRadioButton(ULONG   id,
  57.                                    OFrame& Parent,
  58.                                    ULONG   x,
  59.                                    ULONG   y,
  60.                                    ULONG   cx,
  61.                                    ULONG   cy,
  62.                                    ULONG   extraStyle)
  63.      : ORadioButton(id, Parent, x, y, cx, cy)
  64. {
  65.  style = BS_AUTORADIOBUTTON | extraStyle;
  66. }
  67.  
  68.  
  69. OAutoRadioButton::OAutoRadioButton(ULONG   id,
  70.                                    pOFrame Parent,
  71.                                    ULONG   x,
  72.                                    ULONG   y,
  73.                                    ULONG   cx,
  74.                                    ULONG   cy,
  75.                                    ULONG   extraStyle)
  76.      : ORadioButton(id, Parent, x, y, cx, cy)
  77. {
  78.  style = BS_AUTORADIOBUTTON | extraStyle;
  79. }
  80.  
  81.  
  82. OAutoRadioButton::~OAutoRadioButton()
  83.      {}
  84.  
  85.  
  86. PSZ OAutoRadioButton::isOfType() const
  87. {
  88.  return("OAutoRadioButton");
  89. }
  90.  
  91.  
  92. // end of source
  93.