OWLNext    7.0
Borland's Object Windows Library for the modern age
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
radiobut.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// Copyright (c) 1991, 1996 by Borland International, All Rights Reserved
4//
5/// \file
6/// Definition of class TRadioButton. This defines the basic behavior for all
7/// radio buttons.
8//----------------------------------------------------------------------------
9
10#if !defined(OWL_RADIOBUT_H)
11#define OWL_RADIOBUT_H
12
13#include <owl/private/defs.h>
14#if defined(BI_HAS_PRAGMA_ONCE)
15# pragma once
16#endif
17
18#include <owl/checkbox.h>
19
20
21namespace owl {
22
23#include <owl/preclass.h>
24
25/// \addtogroup ctrl
26/// @{
27/// \class TRadioButton
28// ~~~~~ ~~~~~~~~~~~~
29/// Defines an interface object that represents a corresponding radio button element
30/// in Windows. Use TRadioButton to create a radio button control in a parent
31/// TWindow object. A TRadioButton object can also be used to facilitate
32/// communication between your application and the radio button controls of a
33/// TDialog. object.
34///
35/// Radio buttons have two states: checked and unchecked. TRadioButton inherits its
36/// state management member functions from its base class, TCheckBox. Optionally, a
37/// radio button can be part of a group (TGroupBox) that visually and logically
38/// groups its controls. TRadioButton is a streamable class.
39//
41 : public TCheckBox
42{
43 public:
44
45 TRadioButton(TWindow* parent, int id, LPCTSTR title, int x, int y, int w, int h, TGroupBox* = 0, TModule* = 0);
46 TRadioButton(TWindow* parent, int id, const tstring& title, int x, int y, int w, int h, TGroupBox* = 0, TModule* = 0);
47 TRadioButton(TWindow* parent, int resId, TGroupBox* = 0, TModule* = 0);
49
50 protected:
51 // Child id notification handled at the child
52 //
53 void BNClicked(); // BN_CLICKED
54 auto GetWindowClassName() -> TWindowClassName override;
55
56 private:
57 // Hidden to prevent accidental copying or assignment
58 //
60 TRadioButton& operator=(const TRadioButton&);
61
64};
65
67
68/// @}
69
70#include <owl/posclass.h>
71
72
73} // OWL namespace
74
75
76#endif // OWL_RADIOBUT_H
Definition of class TCheckBox.
TCheckBox is a streamable interface class that represents a check box control.
Definition checkbox.h:53
An instance of a TGroupBox is an interface object that represents a corresponding group box element.
Definition groupbox.h:50
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition module.h:75
Defines an interface object that represents a corresponding radio button element in Windows.
Definition radiobut.h:42
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
Definition module.h:47
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition window.h:414
HWND THandle
TWindow encapsulates an HWND.
Definition window.h:418
#define DECLARE_RESPONSE_TABLE(cls)
Definition eventhan.h:436
#define DECLARE_STREAMABLE_OWL(cls, ver)
Definition objstrm.h:1529
#define DECLARE_STREAMABLE_INLINES(cls)
Definition objstrm.h:1538
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
std::string tstring
Definition defs.h:79
#define _OWLCLASS
Definition defs.h:338