#include <w32dlib/dialog.h>
Inheritance diagram for W32DLib::Dialog:

Public Member Functions | |
| Dialog () | |
| Constructor. | |
| virtual | ~Dialog () |
| Destructor. | |
| virtual int | ResourceID ()=0 |
| Returns the Resource ID for the dialog. | |
| virtual void | OnInit () |
| Called when the dialog is displaying. | |
| virtual void | OnClose () |
| Called when the dialog is closing. | |
| void | Enable (bool enable) |
| Enables or disables all Controls in the dialog. | |
| INT_PTR | ShowModal (HINSTANCE instance, HWND parent) |
| Displays a modal dialog. | |
| void | Close (INT_PTR result) |
| Closes the dialog. | |
| void | AddControl (Control *control) |
| Adds a control to the dialog. | |
| void | SetMenuProc (Window *owner, W32DLibCallback callback) |
| Sets a callback for handling menu commands. | |
| void | SetData () |
| Request data exchange with all controls. | |
| void | GetData () |
| Request data exchange with all controls. | |
Protected Member Functions | |
| virtual BOOL | InstanceProc (HWND wnd, UINT msg, WPARAM wp, LPARAM lp) |
| Handles windows messages. | |
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Adds a control to the dialog. Note that the pointer to the control is stored, so the control must exist as long as the dialog is in use.
|
|
|
Closes the dialog. Closes the dialog. Silently ignored if the dialog is not open.
|
|
|
Enables or disables all Controls in the dialog. Overrides Window::Enable. Reimplemented from W32DLib::Window. |
|
|
Request data exchange with all controls. Values will be stored in the DataX objects registered with the controls. This shouldn't be called any earlier than when OnInit() is invoked. |
|
||||||||||||||||||||
|
Handles windows messages.
Reimplemented from W32DLib::Window. |
|
|
Called when the dialog is closing. Override this call to pick up this event. |
|
|
Called when the dialog is displaying. Override this call to initialise dialog controls. |
|
|
Returns the Resource ID for the dialog. All derived classes must implement this. This should return the ID of the dialog in the resource file. |
|
|
Request data exchange with all controls. Values will be set from DataX objects registered with the controls. This shouldn't be called any earlier than when OnInit() is invoked. |
|
||||||||||||
|
Sets a callback for handling menu commands. This call simply passes on all WM_COMMAND messages that were not for any registered control's resource ID. Due to this, the callback should take care to ensure it only actions recognised menu commands.
|
|
||||||||||||
|
Displays a modal dialog. Call this to display the dialog.
|
1.4.1