The information in this article applies to:
SUMMARY
An application using the common dialog box library (COMMDLG.DLL) can
override any information initialized in the DLL by handling the
WM_INITDIALOG message in its dialog hook function. If the application is
using a private dialog template, it should also initialize all private
dialog items while handling this message.
MORE INFORMATIONFor example, consider an application that is using the Open File common dialog box (via GetOpenFileName()) but does not want the Drives combo box to appear in the dialog box. Since all dialog items in the standard dialog template must be included in the application's private dialog template, the application will need to include code to disable and hide the Drives combo box and the corresponding "Drives:" static text control. This code would be implemented in the WM_INITDIALOG case of the dialog hook function, as follows:
Additional query words:
Keywords : kbCmnDlg kbNTOS350 kbNTOS351 kbGrpUser |
Last Reviewed: December 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |