Source code of Windows XP (NT5)
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.

208 lines
4.3 KiB

  1. // LCWizPgs.h : header file
  2. //
  3. #ifndef __LCWIZPGS_H__
  4. #define __LCWIZPGS_H__
  5. #include "NetTree.h"
  6. #include "FinPic.h"
  7. #define HORZ_MARGIN 1 // Inches
  8. #define VERT_MARGIN 1.25 // Inches
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CLicCompWizPage1 dialog
  11. class CLicCompWizPage1 : public CPropertyPage
  12. {
  13. DECLARE_DYNCREATE(CLicCompWizPage1)
  14. // Construction
  15. public:
  16. CLicCompWizPage1();
  17. ~CLicCompWizPage1();
  18. // Dialog Data
  19. CFont m_fontBold;
  20. //{{AFX_DATA(CLicCompWizPage1)
  21. enum { IDD = IDD_PROPPAGE1 };
  22. CStatic m_wndWelcome;
  23. int m_nRadio;
  24. CString m_strText;
  25. //}}AFX_DATA
  26. // Constants
  27. enum
  28. {
  29. BOLD_WEIGHT = 300
  30. };
  31. // Overrides
  32. // ClassWizard generate virtual function overrides
  33. //{{AFX_VIRTUAL(CLicCompWizPage1)
  34. public:
  35. virtual BOOL OnSetActive();
  36. virtual LRESULT OnWizardNext();
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. protected:
  42. // Generated message map functions
  43. //{{AFX_MSG(CLicCompWizPage1)
  44. virtual BOOL OnInitDialog();
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CLicCompWizPage3 dialog
  50. class CLicCompWizPage3 : public CPropertyPage
  51. {
  52. DECLARE_DYNCREATE(CLicCompWizPage3)
  53. // Construction
  54. public:
  55. CLicCompWizPage3();
  56. ~CLicCompWizPage3();
  57. // Dialog Data
  58. protected:
  59. BOOL m_bExpandedOnce;
  60. //{{AFX_DATA(CLicCompWizPage3)
  61. enum { IDD = IDD_PROPPAGE3 };
  62. CStatic m_wndTextSelectDomain;
  63. CStatic m_wndTextDomain;
  64. CEdit m_wndEnterprise;
  65. CNetTreeCtrl m_wndTreeNetwork;
  66. //}}AFX_DATA
  67. // Constants
  68. enum
  69. {
  70. BUFFER_SIZE = 0x100
  71. };
  72. // Overrides
  73. // ClassWizard generate virtual function overrides
  74. //{{AFX_VIRTUAL(CLicCompWizPage3)
  75. public:
  76. virtual BOOL OnSetActive();
  77. virtual LRESULT OnWizardNext();
  78. protected:
  79. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  80. //}}AFX_VIRTUAL
  81. // Implementation
  82. public:
  83. inline CEdit& GetEnterpriseEdit() {return m_wndEnterprise;}
  84. protected:
  85. // Generated message map functions
  86. //{{AFX_MSG(CLicCompWizPage3)
  87. afx_msg void OnSelChangedTree(NMHDR* pNMHDR, LRESULT* pResult);
  88. afx_msg void OnChangeEditEnterprise();
  89. afx_msg void OnNetworkTreeOutOfMemory(NMHDR* pNMHDR, LRESULT* pResult);
  90. //}}AFX_MSG
  91. DECLARE_MESSAGE_MAP()
  92. };
  93. /////////////////////////////////////////////////////////////////////////////
  94. // CLicCompWizPage4 dialog
  95. class CLicCompWizPage4 : public CPropertyPage
  96. {
  97. DECLARE_DYNCREATE(CLicCompWizPage4)
  98. // Construction
  99. public:
  100. CLicCompWizPage4();
  101. ~CLicCompWizPage4();
  102. // Dialog Data
  103. protected:
  104. CFont m_fontNormal, m_fontHeader, m_fontFooter, m_fontHeading;
  105. TEXTMETRIC m_tmNormal, m_tmHeader, m_tmFooter, m_tmHeading;
  106. CPoint m_ptPrint, m_ptOrg, m_ptExt;
  107. LONG m_nHorzMargin, m_nVertMargin;
  108. LPINT m_pTabs;
  109. CString m_strCancel;
  110. CSize m_sizeSmallText, m_sizeLargeText;
  111. //{{AFX_DATA(CLicCompWizPage4)
  112. enum { IDD = IDD_PROPPAGE4 };
  113. CFinalPicture m_wndPicture;
  114. CButton m_wndPrint;
  115. CStatic m_wndUnlicensedProducts;
  116. CListCtrl m_wndProductList;
  117. //}}AFX_DATA
  118. // Constants
  119. enum
  120. {
  121. LLS_PREFERRED_LENGTH = 500,
  122. COLUMNS = 2,
  123. PRINT_COLUMNS = 4,
  124. TAB_WIDTH = 3,
  125. BUFFER_SIZE = 0x100,
  126. FONT_SIZE = 100,
  127. FONT_SIZE_HEADING = 140,
  128. FONT_SIZE_FOOTER = 80,
  129. };
  130. // Overrides
  131. // ClassWizard generate virtual function overrides
  132. //{{AFX_VIRTUAL(CLicCompWizPage4)
  133. public:
  134. virtual BOOL OnSetActive();
  135. virtual LRESULT OnWizardBack();
  136. protected:
  137. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  138. //}}AFX_VIRTUAL
  139. // Implementation
  140. public:
  141. BOOL FillListCtrl(LPTSTR pszProduct, WORD wInUse, WORD wPurchased);
  142. static UINT GetLicenseInfo(LPVOID pParam);
  143. protected:
  144. BOOL PrintReport(CDC& dc);
  145. BOOL PrintPages(CDC& dc, UINT nStart);
  146. BOOL PrepareForPrinting(CDC& dc);
  147. BOOL PrintPageHeader(CDC& dc);
  148. BOOL PrintPageFooter(CDC& dc, USHORT nPage);
  149. BOOL CalculateTabs(CDC& dc);
  150. void TruncateText(CDC& dc, CString& strText);
  151. void PumpMessages();
  152. // Generated message map functions
  153. //{{AFX_MSG(CLicCompWizPage4)
  154. virtual BOOL OnInitDialog();
  155. afx_msg void OnPrintButton();
  156. afx_msg void OnListProductsOutOfMemory(NMHDR* pNMHDR, LRESULT* pResult);
  157. afx_msg void OnDestroy();
  158. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  159. //}}AFX_MSG
  160. DECLARE_MESSAGE_MAP()
  161. };
  162. #endif // __LCWIZPGS_H__