Главная страница | назад





Article #15650: Print dilaog with default landscape orientation

 Question and Answer Database
FAQ650C.txt Print dilaog with default landscape orientation
Category :Windows API
Platform :All
Product :BC++ 5.x
Question:
How can I make the print dialog open with a landscape orientation
checked as the default?
Answer:
Setting the DEVMODE structure is how to set the default settings
for the printer set up dialog box. The orientation is the
one you want.
PrintDlg() is the function that shows the dialog box. This
function is passed the information with a PRTDLG structure. The
PRTDLG structure has a handle to a DEVMODE structure that has an
orientation field.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99