|
Dialog Box Types
The Common Dialog Box Library provides a creation function and a structure for
each type of common dialog box. To use a common dialog box in its simplest
form, you call its creation function and specify a pointer to a structure
containing initial values and option flags. After initializing the dialog box, the
dialog box procedure uses the structure to return information about the user's
input. You can also customize a common dialog box to suit the needs of your
application.
The following table provides a brief description of the different types of
common dialog boxes, and shows the function and structure used with each type.
Color
| Displays available colors and optionally lets the user create custom colors.
The user can select a basic or custom color. Use the ChooseColor function and CHOOSECOLOR structure.
| Find
| Displays a dialog box in which the user can type the string to find. The user
can also specify search options, such as the search direction and whether the
search is case sensitive. Use the FindText function and FINDREPLACE structure.
| Font
| Displays lists of available fonts, point sizes, and other font attributes that
the user can select. Use the ChooseFont function and CHOOSEFONT structure.
| Open
| Displays lists of drives, directories, and filename extensions from which the
user can select to display a list of filenames. The user can type a filename or
select one from the list to identify the file to be opened. Use the GetOpenFileName function and OPENFILENAME structure.
| Print
| Displays information about the installed printer and its configuration. The
user can select print job options, such as the range of pages to print and the
number of copies, and start the printing process. Use the PrintDlg function and PRINTDLG structure.
| Page Setup
| Displays the current page configuration. The user can select page
configuration options, such as paper orientation, size, source, and margins. Use the PageSetupDlg function and PAGESETUPDLG structure.
| Replace
| Displays a dialog box in which the user can type the string to find and the
replacement string. The user can specify search options, such as whether the
search is case sensitive, and replacement options, such as the scope of
replacement. Use the ReplaceText function and FINDREPLACE structure.
| Save As
| Displays lists of drives, directories, and filename extensions from which the
user can select to display a list of filenames. The user can type a filename or
select one from the list to specify the name with which to save the file. Use
the GetSaveFileName function and OPENFILENAME structure.
|
Note Although a Print Setup dialog box is also available, it has been superseded
by the Page Setup dialog box. New applications written for Windows 95 or for
Windows NT versions 3.51 or later should use the Page Setup dialog box rather
than the Print Setup dialog box.
All common dialog boxes are modal, except the Find and Replace dialog boxes.
Modal dialog boxes must be closed by the user before the function used to create
the dialog box can return. The Find and Replace dialog boxes are modeless; the
function returns before the dialog box closes. If you use the Find and Replace
dialog boxes, you must also use the IsDialogMessage function in the main message loop of your application to ensure that these
dialog boxes correctly process keyboard input, such as the TAB and ESC keys.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|