home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / ADDONINC.PAK / IPRSET.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.3 KB  |  46 lines

  1. /*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2.  
  3.   iprset.h
  4.   Created: 06/20/96
  5.   Author: Slim Heilpern
  6.   Copyright (c) 1995, Borland International
  7.   $Revision:   1.0  $
  8.  
  9.   IPrinterSettings
  10.    
  11. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/  
  12. #ifndef __IPRSET_H
  13. #define __IPRSET_H
  14.  
  15. #include <windows.h>
  16. #include <objbase.h>
  17. #include <ideaddon\iprset.uid>
  18. #include <ideaddon\common.h>
  19.  
  20. //
  21. // IPrinterSettings 
  22. // 
  23. //   GetPrintDialogSettings() 
  24. //     return value can be one of the following:
  25. //       - a pointer to a Windows PRINTDLG struct if the user has 
  26. //        modified the default settings through the 'Print Setup' 
  27. //        dialog box in BCW. See the Win32 API doc for a full 
  28. //        description of this struct.
  29. //       - NULL, if the user has not modified the default settings
  30. // 
  31. //     The returned PRINTDLG lifetime is controlled by BCW, copy it to 
  32. //     your own storage area if you need to hold on to it.
  33. // 
  34. //   GetPageDialogSettings() currenlty always returns NULL and is reserved
  35. //   for future use.
  36. //
  37. //   
  38. class IPrinterSettings : public IUnknown {
  39.  public:
  40.   virtual LPPRINTDLG BCWADDON_CMETHOD GetPrintDialogSettings() = 0;
  41.   virtual LPPAGESETUPDLG BCWADDON_CMETHOD GetPageDialogSettings() = 0;
  42. };
  43.  
  44.  
  45. #endif    //__IPRSET_H
  46.