home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / RADIOBUT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.5 KB  |  52 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. //   include\owl\radiobut.h
  4. //   Defines class TRadioButton.  This defines the basic behavior
  5. //   for all radio buttons.
  6. //----------------------------------------------------------------------------
  7. #if !defined(__OWL_RADIOBUT_H)
  8. #define __OWL_RADIOBUT_H
  9.  
  10. #if !defined(__OWL_CHECKBOX_H)
  11.   #include <owl\checkbox.h>
  12. #endif
  13.  
  14. //
  15. //  class TRadioButton
  16. //  ----- ------------
  17. //
  18. class _OWLCLASS TRadioButton : public TCheckBox {
  19.   public:
  20.     TRadioButton(TWindow*        parent,
  21.                  int             id,
  22.                  const char far* title,
  23.                  int x, int y, int w, int h,
  24.                  TGroupBox*      group = 0,
  25.                  TModule*        module = 0);
  26.  
  27.     TRadioButton(TWindow*   parent,
  28.                  int        resourceId,
  29.                  TGroupBox* group = 0,
  30.                  TModule*   module = 0);
  31.  
  32.   protected:
  33.     //
  34.     // child id notification handled at the child
  35.     //
  36.     void       BNClicked();  // BN_CLICKED
  37.  
  38.     char far*  GetClassName();
  39.  
  40.   private:
  41.     //
  42.     // hidden to prevent accidental copying or assignment
  43.     //
  44.     TRadioButton(const TRadioButton&);
  45.     TRadioButton& operator=(const TRadioButton&);
  46.       
  47.   DECLARE_RESPONSE_TABLE(TRadioButton);
  48.   DECLARE_STREAMABLE(_OWLCLASS, TRadioButton, 1);
  49. };
  50.  
  51. #endif  // __OWL_RADIOBUT_H
  52.