Subj : Dialog box examples To : borland.public.cpp.borlandcpp From : "Rob C. " Date : Thu Oct 30 2003 01:24 pm There are millions of examples of C++ code (Dialog boxes in my case) under \BC5\Examples, but when I open them up to maybe learn from them, why they aren’t code at all, but what you see below. What an I supposed to do, look on the CDrom? . . . ------------------------------------------- TITLE: CMDLG PURPOSE: Demonstrates the use of Open, Color, and Font common dialogs which are available in Windows 3.1, Windows NT, and Windows 95. COMMENTS: The following examples also use common dialogs: \BC5\EXAMPLES\SERIES\COMMONDG <- this one below \BC5\EXAMPLES\WIN95\COMDLG32 \BC5\EXAMPLES\WINDOWS\TRUETYPE ---------------------- here’s another one ------------------ COMMONDG - Based on GENERIC THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) 1993-1995 Microsoft Corporation. All Rights Reserved. PURPOSE: Show basic uses of each of the common dialogs. USES: Based on generic COMMENTS: MODULE MAP: Dispatch- Message dispatching routines WinMain - Calls initialization functions and processes the message loop Commondg- Implements the windows procedure for the main application window Init - Performs application and instance specific initialization About - Defines a standard about dialog box. Misc - Defines the applications specific commands not related to a specific module. commdlg - Implement stub and paint functions for the commdlg sample. filedlg - Shows basic use of "Open" and "Save As" common dialogs. finddlg - To show the use of the find and replace common dialogs. optdlg - To show the use of the fonts and colors common dialogs. printdlg- To show the use of the "Print" and "Print Setup" common dialog boxes. -------------------------------- .