home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / vjplusb / activex / inetsdk / samples / urlpad / pageset.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-29  |  1.8 KB  |  66 lines

  1. //=------------------------------------------------------------------------=
  2. // PageSet.h
  3. //=------------------------------------------------------------------------=
  4. // Copyright 1992-1996 Microsoft Corporation.  All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. //
  12. // Definition of the CPageSetupDlg class
  13. //
  14.  
  15. #ifndef _PAGESET_H_
  16. #define _PAGESET_H_
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPageSetupDlg dialog
  20.  
  21. class CPageSetupDlg : public CDialog
  22. {
  23.     DECLARE_DYNAMIC(CPageSetupDlg)
  24. // Construction
  25. public:
  26.     CPageSetupDlg(CWnd* pParent = NULL);    // standard constructor
  27.     void Initialize();
  28.     void Terminate();
  29.  
  30. // Dialog Data
  31.     //{{AFX_DATA(CPageSetupDlg)
  32.     enum { IDD = IDD_PAGE_SETUP };
  33.     CString m_strFooter;
  34.     CString m_strHeader;
  35.     int     m_iFooterTime;
  36.     int     m_iHeaderTime;
  37.     //}}AFX_DATA
  38.  
  39.     CString m_strFooterOld;
  40.     CString m_strHeaderOld;
  41.     int     m_iFooterTimeOld;
  42.     int     m_iHeaderTimeOld;
  43.  
  44. // Operations
  45.     void FormatHeader(CString& strHeader, CTime& time,
  46.         LPCTSTR pszFileName, UINT nPage);
  47.     void FormatFooter(CString& strFooter, CTime& time,
  48.         LPCTSTR pszFileName, UINT nPage);
  49.  
  50. // Implementation
  51. protected:
  52.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  53.  
  54.     static void FormatFilePage(
  55.         CString& strFormat, LPCTSTR pszFileName, UINT nPage);
  56.  
  57.     // Generated message map functions
  58.     //{{AFX_MSG(CPageSetupDlg)
  59.     //}}AFX_MSG
  60.     DECLARE_MESSAGE_MAP()
  61. };
  62.  
  63. #endif // _PAGESET_H_
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66.