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.

76 lines
1.9 KiB

  1. #if !defined(AFX_ITEMPROPSHEET_H__CCF76858_9A54_4AB7_8DBF_BD9815F06F53__INCLUDED_)
  2. #define AFX_ITEMPROPSHEET_H__CCF76858_9A54_4AB7_8DBF_BD9815F06F53__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ItemPropSheet.h : header file
  7. //
  8. struct TMsgPageInfo
  9. {
  10. MsgViewItemType itemType; // job type
  11. DWORD dwValueResId; // item value control id
  12. };
  13. #define WM_SET_SHEET_FOCUS WM_APP+4
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CItemPropSheet
  16. class CItemPropSheet : public CPropertySheet
  17. {
  18. DECLARE_DYNAMIC(CItemPropSheet)
  19. // Construction
  20. public:
  21. CItemPropSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  22. DWORD Init(CFolder* pFolder, CFaxMsg* pMsg);
  23. DWORD GetLastError() { return m_dwLastError; }
  24. void SetLastError(DWORD dwError) { m_dwLastError = dwError; }
  25. // Attributes
  26. private:
  27. #define PROP_SHEET_PAGES_NUM 4
  28. CPropertyPage* m_pPages[PROP_SHEET_PAGES_NUM];
  29. DWORD m_dwLastError;
  30. CFaxMsg* m_pMsg;
  31. // Operations
  32. public:
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CItemPropSheet)
  36. public:
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CItemPropSheet();
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CItemPropSheet)
  44. afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  45. afx_msg LONG OnSetSheetFocus(UINT wParam, LONG lParam);
  46. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47. afx_msg LONG OnHelp(UINT wParam, LONG lParam);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_ITEMPROPSHEET_H__CCF76858_9A54_4AB7_8DBF_BD9815F06F53__INCLUDED_)