## Description

Parent class: XDialog

### Overview

### Functions

#### QueryForClose

#### Parameters

SHORT command the command received from a dialog-control

#### Return-Value

BOOL canDestroy

#### Remarks

If a command was received by the modal dialog, eg. from a button, you must decide if the modal dialog can be destroyed or not. Override this function, return TRUE if the dialog can be destroyed, otherwise return FALSE.

#### XModalDialog

#### Parameters

XResource * id | A resource which describes the dialog template
XWindow * owner | A pointer to the owner-window. If now owner is given an error occures.
BOOL center | Display the dialog centered.

#### Remarks

Construct a modal dialog. You must call XModalDialog::Start() after constructing an instance to make the dialog work. When constructing the dialog you can initialize the dialog controls.

#### Start

#### Remarks

To make a modal dialog work you must call Start().

This document was generated by Jens von Pilgrim's Autodoc