Share

CAdUiDialog Class

Class Hierarchy

CAdUiBaseDialog
    CAdUiDialog
        CAcFdUiFieldOptionDialog
        CAcFdUiFormatDialog
        CAcUiDialog
        CAdUiTabChildDialog
        CAdUiTabMainDialog
        CNavDialog

C++

class CAdUiDialog : public CAdUiBaseDialog;

File

aduiDialog.h

Description

CAdUiDialog derives from CAdUiBaseDialog. The class provides a straightforward, general-purpose set of member functions that allow for sizable modal dialogs and persistent data storage by dialog. This dialog class provides functionality in three essential areas: resizing, coordinate persistency, and data persistency. CAdUiTabMainDialog and CAdUiTabChildDialog both derive from CAdUiDialog.

See "Built-In MFC User Interface Support" in the ObjectARX Developer's Guide for an explanation of the distinction between CAdUi and CAcUi classes.

Remarks

Many dialogs maintain a call to CenterWindow(), which is the default behavior in CDialog::OnInitDialog beginning with MFC 4.0. If you plan on managing the placement persistency of your dialog via the dialog classes mentioned here, you should remove calls to CenterWindow() in your OnInitDialog message handler.

If you have a large number of controls in your dialog, you should use the SetControlProperty() API and pass a list of control behaviors.

The IDC_STATIC control ID (-1) is not supported. You should identify your controls uniquely

Links

CAdUiDialog Methods

Was this information helpful?