#include <cformdlg.h>
Public Member Functions | |
| CFORMDLG () | |
| virtual | ~CFORMDLG () |
| int | Create (Widget parent, const char *title, const char *help, BUTTONITEM *buttons=NULL, UINT32 flags=0) |
| int | Create (Widget parent, char *title, char *help, BUTTONITEM *buttons=NULL, UINT32 flags=0) |
| virtual int | DoModal () |
| void | EndDialog (int result=0) |
| Widget | GetMainForm () const |
| Widget | GetOKButton () const |
| Widget | GetCancelButton () const |
| virtual bool | IsModal () const |
| void | OKButtonDisable () const |
| void | OKButtonEnable (bool enable=true) const |
| virtual int | OnInitDialog (Widget form)=0 |
| virtual void | OnOK () |
| virtual void | OnCancel () |
| virtual void | OnClose () |
Definition at line 43 of file cformdlg.h.
|
|
CONSTRUCTOR.
|
|
|
DESTRUCTOR.
|
|
||||||||||||||||||||||||
|
For backwards comapt. Should go away...
|
|
||||||||||||||||||||||||
|
Create the dialog. Returns 0 or an error code. If you don't want a button row at the bottom, pass in a BUTTONITEM array in which the first item has a NULL label.
|
|
|
Manage dialog and wait for it to close. Returns 0 or EUserCancel I made this virtual because the MFC one is. I'm not sure why you'd want to override it, but you can. |
|
|
Closes the dialog.
|
|
|
Return the Cancel button's widget.
Definition at line 99 of file cformdlg.h. |
|
|
Return the main form.
Definition at line 87 of file cformdlg.h. |
|
|
Return the OK button's widget.
Definition at line 93 of file cformdlg.h. |
|
|
Function to determine if the dialog is modal or not. Default is modal. If you want your derived class to be a non-modal dialog, override this function and have it return false. Definition at line 109 of file cformdlg.h. |
|
|
Disable OK button.
Definition at line 115 of file cformdlg.h. |
|
|
Enable (or disable) the OK button, if any. Default is to enable, but takes an optional parameter which could be the result of an expression. true enables, false disables. Doesn't actually modify the class, just a Widget it holds. |
|
|
Called when user hits Cancel (if you used default buttons) or the "X" on title bar. Default calls EndDialog(EUserCancel). If you override it, your version should call DFORMDLG::OnCancel(). |
|
|
Called when dialog pops down. Default does nothing. |
|
|
Function called by Create to create the contents. Derived class MUST implement this. Function should return 0 or an error code. If returns < 0, create will return the error value too. The form passed in is already attached to the dialog on top, left and right, and to a separator above the button row on bottom
|
|
|
Called when user hits OK (if you used default buttons). Default calls EndDialog(0). If you override it, your version should call DFORMDLG::OnOK(). |
1.3.4-20031026