Microsoft KB Archive/82299

{|
 * width="100%"|

HOWTO: Change the Controls in a Common Dialog Box

 * }

Q82299

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK)
 * Microsoft Win32 Software Development Kit (SDK), used with:
 * Microsoft Windows NT Server versions 3.1, 3.5, 3.51
 * Microsoft Windows NT Workstation versions 3.1, 3.5, 3.51
 * the operating system: Microsoft Windows 2000

-

SUMMARY
One reason to incorporate the common dialogs library routines into an application is the ability to use the basic functionality of one or more of the common dialogs and tailor it to the needs of a particular application.

All of the predefined controls must be present for the Common Dialogs DLL (COMMDLG.DLL) to properly interact with a dialog box. Each predefined control in the dialog box must retain its control ID value. For these reasons, an application cannot delete unnecessary controls from a dialog box.

To prevent the user from interacting with a given control, move the control off screen by specifying very large coordinate values [for example, (4000, 4000)]. The application must also disable the control to prevent it from receiving the focus when the user uses the TAB key to cycle through the controls. Failing to disable the control can create &quot;mystery&quot; tab stops where the input focus disappears.

Additional query words:

Keywords : kbCmnDlg kbOSWinNT310 kbOSWinNT350 kbOSWinNT351 kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin310

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWinSDKSearch