NeroDlg.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #if !defined(AFX_NERODLG1_H__E6EFFD01_4425_11CF_BB70_00E04C394613__INCLUDED_)
  2. #define AFX_NERODLG1_H__E6EFFD01_4425_11CF_BB70_00E04C394613__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // NeroDlg1.h : header file
  7. //
  8. #include "NeroBurn.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CNeroDlg dialog
  11. class CNeroDlg : public CDialog
  12. {
  13. CString m_realpath;//没有精修片时的替代片
  14. int m_nphotos;
  15. DWORD m_nspase;
  16. int m_nphotos1;
  17. DWORD m_nspase1;
  18. int m_nphotos2;
  19. DWORD m_nspase2;
  20. int m_nphotos3;
  21. DWORD m_nspase3;
  22. int m_nphotos4;
  23. DWORD m_nspase4;
  24. int m_nphotos5;
  25. DWORD m_nspase5;
  26. int m_nphotos6;
  27. DWORD m_nspase6;
  28. DWORD m_nspase1temp;
  29. DWORD m_nspase2temp;
  30. DWORD m_nspase3temp;
  31. DWORD m_nspase4temp;
  32. DWORD m_nspase5temp;
  33. DWORD m_nspase6temp;
  34. CStringArray m_photoarray1;
  35. CStringArray m_photoarray2;
  36. CStringArray m_photoarray3;
  37. CStringArray m_photoarray4;
  38. CStringArray m_photoarray5;
  39. CStringArray m_photoarray6;
  40. CStringArray m_photoarray7;
  41. CStringArray m_noarray;
  42. // Construction
  43. public:
  44. CNeroDlg(CWnd* pParent = NULL); // standard constructor
  45. CString m_id;
  46. CString m_name;
  47. BOOL m_bScale; //是否裁小照片
  48. // Dialog Data
  49. //{{AFX_DATA(CNeroDlg)
  50. enum { IDD = IDD_NEROWORKDLG };
  51. CComboBox m_combo1;
  52. CProgressCtrl m_Progress;
  53. int m_bFromDir;
  54. int m_bDvd;
  55. BOOL m_checkphoto1;
  56. BOOL m_checkphoto2;
  57. BOOL m_checkphoto3;
  58. BOOL m_checkphoto4;
  59. BOOL m_checkphoto5;
  60. BOOL m_checkphoto6;
  61. //}}AFX_DATA
  62. // Overrides
  63. // ClassWizard generated virtual function overrides
  64. //{{AFX_VIRTUAL(CNeroDlg)
  65. public:
  66. virtual BOOL PreTranslateMessage(MSG* pMsg);
  67. protected:
  68. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  69. //}}AFX_VIRTUAL
  70. // Implementation
  71. public:
  72. BOOL CheckDiskSpase();
  73. void GenSPhoto(CString dir, CStringArray &array, DWORD &nNeedSpase, BOOL bCheckNo);
  74. void GenSPhoto(CString dir, CString sType, CStringArray &array, CStringArray &dirarray);
  75. void GetNo(CString str, CStringArray &array);
  76. void EnableCtrls();
  77. int StyleID;
  78. CString wantBurnFilesPath[40];
  79. int wantBurnFileNums;
  80. CNeroBurn m_Burn;
  81. static NeroUserDlgInOut NERO_CALLBACK_ATTR UserDialog(void *pUserData, NeroUserDlgInOut type,void* data);
  82. static bool NERO_CALLBACK_ATTR IdleCallback(void *pUserData);
  83. static void NERO_CALLBACK_ATTR SetPhaseCallback(void* pUserData,const char* text);
  84. static void NERO_CALLBACK_ATTR AddLogLine(void *pUserData,NERO_TEXT_TYPE type,const char* text);
  85. static BOOL NERO_CALLBACK_ATTR AbortedCallback(void* pUserData);
  86. static BOOL NERO_CALLBACK_ATTR ProgressCallback(void *pUserData,DWORD dwProgressInPercent);
  87. protected:
  88. // Generated message map functions
  89. //{{AFX_MSG(CNeroDlg)
  90. virtual BOOL OnInitDialog();
  91. virtual void OnOK();
  92. virtual void OnCancel();
  93. afx_msg void OnRadio3();
  94. afx_msg void OnRadio4();
  95. afx_msg void OnBUTchoosedir();
  96. afx_msg void OnCheck1();
  97. afx_msg void OnCheck2();
  98. afx_msg void OnCheck3();
  99. afx_msg void OnCheck4();
  100. afx_msg void OnCheck5();
  101. afx_msg void OnCheck6();
  102. afx_msg void OnCheck7();
  103. afx_msg void OnCloseupCombo1();
  104. afx_msg void OnRadio1();
  105. afx_msg void OnRadio2();
  106. afx_msg void OnDestroy();
  107. //}}AFX_MSG
  108. DECLARE_MESSAGE_MAP()
  109. private:
  110. bool NowDoingBurn;
  111. bool RightNowToBurn;
  112. void DoBurnOrNot();
  113. };
  114. //{{AFX_INSERT_LOCATION}}
  115. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  116. #endif // !defined(AFX_NERODLG1_H__E6EFFD01_4425_11CF_BB70_00E04C394613__INCLUDED_)