Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

W32DLib::AutoCheck Class Reference

The AutoCheck class. More...

#include <w32dlib/autocheck.h>

Inheritance diagram for W32DLib::AutoCheck:

W32DLib::Control W32DLib::Window List of all members.

Public Types

enum  EState { eError = 0, eChecked = BST_CHECKED, eUnchecked = BST_UNCHECKED, eIndeterminate = BST_INDETERMINATE }
 Describes the checkstate. More...

Public Member Functions

 AutoCheck (Dialog *parent, int resource_id, DataX *datax)
 Constructor.
virtual ~AutoCheck ()
 Destructor.
void OnPress (Window *owner, W32DLibCallback callback)
 Sets a callback for a button press.
void SetFullState (EState state)
 Sets the tickstate.
EState GetFullState ()
 Gets the tickstate.
void SetState (bool state)
 Sets the tickstate.
bool GetState ()
 Gets the tickstate.
virtual void DoDataExchange (bool set)
 Performs data exchange.

Detailed Description

The AutoCheck class.


Member Enumeration Documentation

enum W32DLib::AutoCheck::EState
 

Describes the checkstate.

Enumeration values:
eError  Error getting state.
eChecked  Checked.
eUnchecked  Unchecked.
eIndeterminate  Indeterminate.


Constructor & Destructor Documentation

W32DLib::AutoCheck::AutoCheck Dialog parent,
int  resource_id,
DataX datax
 

Constructor.

Parameters:
parent The dialog the control belongs to.
resource_id The ID of the control in the resource file.
datax The DataX to use. NULL means don't use data exchange.

virtual W32DLib::AutoCheck::~AutoCheck  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void W32DLib::AutoCheck::DoDataExchange bool  set  )  [virtual]
 

Performs data exchange.

Support types:

eString -- see Control::DoDataExchange()

eInt -- same as GetFullState() / SetFullState()

eBool -- same as GetState() / SetState()

Parameters:
set If true the set the Control from the DataX object. If false then set the DataX object from the Control.

Reimplemented from W32DLib::Control.

EState W32DLib::AutoCheck::GetFullState  ) 
 

Gets the tickstate.

This member allows the indeterminate state to be tested.

Returns:
The tick state
See also:
SetState()

bool W32DLib::AutoCheck::GetState  ) 
 

Gets the tickstate.

Returns:
The tick state
See also:
SetState()

void W32DLib::AutoCheck::OnPress Window owner,
W32DLibCallback  callback
 

Sets a callback for a button press.

Parameters:
owner The class the callback resides in.
callback The callback.

void W32DLib::AutoCheck::SetFullState EState  state  ) 
 

Sets the tickstate.

This member allows the indeterminate checks to be set.

Parameters:
state The tick state
See also:
GetState()

void W32DLib::AutoCheck::SetState bool  state  ) 
 

Sets the tickstate.

Parameters:
state The tick state
See also:
GetState()


The documentation for this class was generated from the following file:
Generated on Fri May 6 01:22:33 2005 for W32DLib by  doxygen 1.4.1