Customizing Common Dialog Boxes

You can use the common dialog boxes in their standard form, or you can customize them. From the user’s perspective, the chief benefit of the common dialog box is its consistent appearance and functionality from application to application. Therefore, it is important that you customize a common dialog box only when it is absolutely necessary for an application. Otherwise, the consistent appearance and simple coding interface are lost. Appropriate customizations leave intact as many of the original controls as possible. Increasing the size of the dialog box or adding new controls in the space already available in the dialog box […]

Read more

Open and Save As Dialog Boxes

[Starting with Windows Vista, the Open and Save As common dialog boxes have been superseded by the Common Item Dialog. We recommended that you use the Common Item Dialog API instead of these dialog boxes from the Common Dialog Box Library.] The Open dialog box lets the user specify the drive, directory, and the name of a file or set of files to open. You create and display an Open dialog box by initializing an OPENFILENAME structure and passing the structure to the GetOpenFileName function. The Save As dialog box lets the user specify the drive, directory, and name of […]

Read more

Restrict User Access to the contents of selected drives via registry: NoViewOnDrive

The "NoViewOnDrive" value uses a 32-bit bitmask to define local and network drive access for each logical drive in the computer. The lower 26 bits of the 32-bit word correspond to drive letters A through Z. Drives are visible when set to 0 and hidden when set to 1. Registry Settings User Key: [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPolicies Explorer] System Key: [HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionPolicies Explorer] Value Name: NoViewOnDrive Data Type: REG_DWORD (DWORD Value) Value Data: 32-bit bitmask   This setting has to be done only as administrator even for the HKCU context.   A: 1, B: 2, C: 4, D: 8, E: 16, F: 32, G: […]

Read more