The information in this article applies to:
SUMMARYSometimes it is necessary to update the list of files, without terminating the dialog box, when using the File Open or Save As common dialog box. This can be done by simulating a double-click on the list box of directories. Although the message can be posted from any application, a hook procedure should be used to post the message to the dialog box window. MORE INFORMATIONThe common dialog box functions that update the list of files and directories are internal to the common dialog boxes and are not accessible by applications using the common dialog box routines. The functions are invoked and the list boxes are updated only when the user double-clicks a list box. Sample CodeThe following code uses the Cancel button of the common dialog boxes to update the list boxes:
If the application targets Win32, the notification message to the list box
is sent differently; here is the PostMessage for Win32 applications:
Applications using the IDs of the common dialog box's controls must include
the DLGS.H file.
The templates for the common dialog boxes are in the \SAMPLES\COMMDLG directory or in the \INCLUDE directory of the Windows SDK installation. Additional query words: refresh redraw
Keywords : kbcode kbCmnDlg kbCmnDlgFileO kbCmnDlgSave kbNTOS310 kbNTOS350 kbNTOS351 kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS310 |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |