Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.0 KiB

  1. #ifndef _MSGPRNT_H
  2. #define _MSGPRNT_H
  3. typedef struct _PrintInfo
  4. {
  5. // Public fields for use
  6. HDC hdcPrn; // The HDC to use for printing
  7. RECT rcMargin; // The margin settings for printing
  8. SIZE sizeInch; // Pixels to an inch
  9. SIZE sizePage; // Pixels to an page
  10. // Private fields used by the printing subroutines
  11. RECT rcBand; // The current drawing area
  12. BOOL fEndOfPage; // Whether rcBand represents the end of
  13. // of the page
  14. LONG lPageNumber; // The current page number
  15. LONG lPrevPage; // The last page we printed out so far
  16. TCHAR szPageNumber[20]; // Formatting string for page number
  17. INT yFooter; // Where to put the footer
  18. HFONT hfontSep; // Font for separator
  19. HFONT hfontPlain; // Font for footer
  20. HFONT hfontBold; // Font for footer
  21. ABORTPROC pfnAbortProc; // Pointer to our abort proc
  22. HWND hwnd; // Handle of our parent window
  23. TCHAR * szHeader; // Pointer to our header string
  24. HWND hwndRE; // RichEdit control for rendering
  25. HWND hwndDlg; // Handle of the original note form
  26. // Form mode print support
  27. //PRINTDETAILS * pprintdetails;
  28. } PRINTINFO;
  29. HRESULT HrPrintItems(HWND hWnd, LPADRBOOK lpIAB, HWND hWndListAB, BOOL bCurrentSortisByLastName);
  30. // STDMETHODIMP WABPrintExt(LPADRBOOK FAR lpAdrBook, LPWABOBJECT FAR lpWABObject, HWND hWnd, LPADRLIST lpAdrList);
  31. typedef HRESULT (STDMETHODCALLTYPE WABPRINTEXT)(LPADRBOOK FAR lpAdrBook, LPWABOBJECT FAR lpWABObject, HWND hWnd, LPADRLIST lpAdrList);
  32. typedef WABPRINTEXT FAR * LPWABPRINTEXT;
  33. #endif //_MSGPRNT_H