Called by the framework before the dialog is expanded.
Call EnableExpand() to enable dialog box expanding.