#include <w32dlib/control.h>
Inheritance diagram for W32DLib::Control:

Public Member Functions | |
| Control (Dialog *parent, int resource_id, DataX *datax) | |
| Constructor. | |
| virtual | ~Control () |
| Destructor. | |
| int | ResourceID () |
| Returns the Resource ID for the control. | |
| BOOL | ProcessMessage (UINT msg, WPARAM wp, LPARAM lp) |
| Processes a windows event. | |
| virtual void | DoDataExchange (bool set) |
| Provides a base DoDataExchange. | |
Protected Member Functions | |
| void | AddCallback (UINT msg, UINT notification, Window *owner, W32DLibCallback callback) |
| Add a callback for the control. | |
Protected Attributes | |
| Dialog * | m_parent |
| Filled in by the constructor with the parent dialog. | |
| int | m_resid |
| Filled in by the constructor with the resource ID. | |
| DataX * | m_data |
| Filled in by the constructor with the DataX object. | |
|
||||||||||||||||
|
Constructor. When a control is constructed it calls Dialog::AddControl to add itself to the dialog.
|
|
|
Destructor.
|
|
||||||||||||||||||||
|
Add a callback for the control. Note that multiple callbacks can be lodged for the same msg and notification. If this is the case then the result returned through ProcessMessage is the logical OR of all the returns. When multiple callbacks match they are called in the order they were registered.
|
|
|
Provides a base DoDataExchange. This interface is called by the Dialog to say that data exchange should take place. This base version simply honours DataX eString objects and calls Window::SetText or Window::GetText accordingly.
Reimplemented in W32DLib::AutoCheck, W32DLib::ComboBox, and W32DLib::RadioButton. |
|
||||||||||||||||
|
Processes a windows event. This is called by the Dialog when a message is recieved that refers to this control's resource ID.
|
|
|
Returns the Resource ID for the control.
|
|
|
Filled in by the constructor with the DataX object.
|
|
|
Filled in by the constructor with the parent dialog.
|
|
|
Filled in by the constructor with the resource ID.
|
1.4.1