ID Number: Q84839
1.00
WINDOWS
buglist1.00
Summary:
The Common Dialog custom control (COMMDLG.DLL) provided with Microsoft
Professional Toolkit for Microsoft Visual Basic version 1.0 for
Windows will not display printer specific fonts when you use the
ChooseFont dialog box. Regardless of the options chosen, the
ChooseFont dialog box shows only screen fonts.
The Common Dialog custom control provides a Visual Basic interface to
the Windows "common dialog boxes" provided with the COMMDLG.DLL
dynamic link library (DLL). Using the Common Dialog control, you can
provide a common dialog box to allow the user to select from available
fonts. However, even if the proper options are used, the dialog box
provided by the Common Dialog control will only display screen fonts,
not printer fonts.
Microsoft has confirmed this to be a problem with the Common Dialog
custom control supplied with Microsoft Professional Toolkit for
Microsoft Visual Basic programming system version 1.0 for Windows. We
are researching this problem and will post new information here as it
becomes available.
More Information:
The only workaround for this problem is to write a DLL routine (using
the Windows SDK or equivalent and a language capable of creating
Windows DLLs) that in turn calls the COMMDLG.DLL library to display
the ChooseFont dialog box. By writing your own DLL routine, you can be
certain that the COMMDLG.DLL library uses the correct device context
(hDC) for the printer when determining the fonts available.
Information on the COMMDLG.DLL library is available as part of the
Microsoft Windows 3.1 Software Development Kit (SDK).
Additional reference words: 1.00