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
2.2 KiB

  1. #if !defined(AFX_COVERPAGESDLG_H__621F98B6_B494_4FAB_AFDC_C38A144D4504__INCLUDED_)
  2. #define AFX_COVERPAGESDLG_H__621F98B6_B494_4FAB_AFDC_C38A144D4504__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // CoverPagesDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCoverPagesDlg dialog
  10. #define WM_CP_EDITOR_CLOSED WM_APP + 1
  11. class CCoverPagesDlg : public CFaxClientDlg
  12. {
  13. // Construction
  14. public:
  15. CCoverPagesDlg(CWnd* pParent = NULL); // standard constructor
  16. ~CCoverPagesDlg();
  17. DWORD GetLastDlgError() { return m_dwLastError; }
  18. // Dialog Data
  19. //{{AFX_DATA(CCoverPagesDlg)
  20. enum { IDD = IDD_COVER_PAGES };
  21. CButton m_butDelete;
  22. CButton m_butRename;
  23. CButton m_butOpen;
  24. CListCtrl m_cpList;
  25. //}}AFX_DATA
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CCoverPagesDlg)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. protected:
  34. // Generated message map functions
  35. //{{AFX_MSG(CCoverPagesDlg)
  36. virtual BOOL OnInitDialog();
  37. afx_msg void OnCpNew();
  38. afx_msg void OnCpOpen();
  39. afx_msg void OnCpRename();
  40. afx_msg void OnCpDelete();
  41. afx_msg void OnCpAdd();
  42. afx_msg void OnItemchangedListCp(NMHDR* pNMHDR, LRESULT* pResult);
  43. afx_msg void OnEndLabelEditListCp(NMHDR* pNMHDR, LRESULT* pResult);
  44. afx_msg void OnDblclkListCp(NMHDR* pNMHDR, LRESULT* pResult);
  45. afx_msg void OnKeydownListCp(NMHDR* pNMHDR, LRESULT* pResult);
  46. afx_msg LRESULT OnCpEditorClosed(WPARAM, LPARAM);
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. private:
  50. DWORD RefreshFolder();
  51. void CalcButtonsState();
  52. DWORD CopyPage(const CString& cstrPath, const CString& cstrName);
  53. DWORD StartEditor(LPCTSTR lpFile);
  54. static HWND m_hDialog;
  55. static HANDLE m_hEditorThread;
  56. static DWORD WINAPI StartEditorThreadProc(LPVOID lpFile);
  57. };
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_COVERPAGESDLG_H__621F98B6_B494_4FAB_AFDC_C38A144D4504__INCLUDED_)