DlgMakeMetafile.h
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_DLGMAKEMETAFILE_H__42574A9F_7C6F_47E8_8D1C_06843D1FF257__INCLUDED_)
  2. #define AFX_DLGMAKEMETAFILE_H__42574A9F_7C6F_47E8_8D1C_06843D1FF257__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DlgMakeMetafile.h : header file
  7. //
  8. #include "MakeMetafile.h"
  9. #include "HistoryComboEx.h"
  10. #include "CategoryCombobox.h"
  11. #include "ButtonEx.h"
  12. class CTreeCursor;
  13. class CTestBTDoc; 
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CDlgMakeMetafile dialog
  16. class CDlgMakeMetafile : public CDialog
  17. {
  18. // Construction
  19. public:
  20. CDlgMakeMetafile(CTestBTDoc* pTestBTDoc, CWnd* pParent = NULL);   // standard constructor
  21. // Dialog Data
  22. //{{AFX_DATA(CDlgMakeMetafile)
  23. enum { IDD = IDD_DIALOG_MAKE_METAFILE };
  24. CButtonEx m_btnCancel;
  25. CButtonEx m_btnAddExit;
  26. CButtonEx m_btnAdd;
  27. CButtonEx m_btnMake;
  28. CCategoryCombobox m_cbCategory;
  29. CHistoryComboEx m_cbUrl;
  30. CComboBox m_cbPieceLength;
  31. CProgressCtrl m_progMakeMetafile;
  32. CString m_strFilePath;
  33. CString m_strComment;
  34. CEdit m_edCurMetaFile;
  35. //}}AFX_DATA
  36. CTestBTDoc* m_pTestBTDoc;
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CDlgMakeMetafile)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CDlgMakeMetafile)
  47. virtual BOOL OnInitDialog();
  48. virtual void OnOK();
  49. afx_msg void OnDestroy();
  50. afx_msg void OnButtonSelectPath();
  51. afx_msg void OnButtonSelectFile();
  52. afx_msg void OnButtonAdd();
  53. afx_msg void OnButtonOpenFolder();
  54. afx_msg void OnButtonAddExit();
  55. afx_msg void OnButtonMake();
  56. //}}AFX_MSG
  57. void OnMakeProgress(long lParam, long wParam);
  58. void OnMakeFinished(long lParam, long wParam);
  59. DECLARE_MESSAGE_MAP()
  60. private:
  61. void Copy(CTreeCursor& curItem, int iIndent = 1);
  62. void UpdateCommandUI();
  63. CMakeMetaFile m_MakeMetaFile;
  64. string m_strSaveDBpath;
  65. bool m_bMakeAddExit;
  66. };
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_DLGMAKEMETAFILE_H__42574A9F_7C6F_47E8_8D1C_06843D1FF257__INCLUDED_)