please dont rip this site Prev Next

PrintDlg info  Overview  Group

The PrintDlg function displays a Print dialog box or a Print Setup dialog box. The Print dialog box enables the user to specify the properties of a particular print job.

The Print Setup dialog box should not be used in new applications. It has been superseded by the Page Setup common dialog box created by the PageSetupDlg function.

BOOL PrintDlg(

    LPPRINTDLG lppd 

// address of structure with initialization data

   );

Parameters

lppd
Pointer to a PRINTDLG structure that contains information used to initialize the dialog box. When PrintDlg returns, this structure contains information about the user’s selections.

Return Values

If the user clicks the OK button, the return value is nonzero. The members of the PRINTDLGstructure pointed to by the lppd parameter indicate the user’s selections.

If the user cancels or closes the Print or Printer Setup dialog box or an error occurs, the return value is zero. To get extended error information, use the CommDlgExtendedError function, which can return one of the following values:

CDERR_FINDRESFAILURE

PDERR_CREATEICFAILURE

CDERR_INITIALIZATION

PDERR_DEFAULTDIFFERENT

CDERR_LOADRESFAILURE

PDERR_DNDMMISMATCH

CDERR_LOADSTRFAILURE

PDERR_GETDEVMODEFAIL

CDERR_LOCKRESFAILURE

PDERR_INITFAILURE

CDERR_MEMALLOCFAILURE

PDERR_LOADDRVFAILURE

CDERR_MEMLOCKFAILURE

PDERR_NODEFAULTPRN

CDERR_NOHINSTANCE

PDERR_NODEVICES

CDERR_NOHOOK

PDERR_PARSEFAILURE

CDERR_NOTEMPLATE

PDERR_PRINTERNOTFOUND

CDERR_STRUCTSIZE

PDERR_RETDEFFAILURE

Remarks

If the hook procedure (pointed to by the lpfnPrintHook or lpfnSetupHook member of the PRINTDLG structure) processes the WM_CTLCOLORDLG message, the hook procedure must return a handle for the brush that should be used to paint the control background.

See Also

CommDlgExtendedError, CreateDC, DOCINFO, PRINTDLG, PrintHookProc, SetupHookProc, StartDoc, WM_CTLCOLORDLG


file: /Techref/os/win/api/win32/func/src/f68_9.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/11/23 08:08,
TOP NEW HELP FIND: 
3.144.8.68:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/techref/os/win/api/win32/func/src/f68_9.htm"> PrintDlg</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .