ChoosePhotoSkin2.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #if !defined(AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)
  2. #define AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ChoosePhotoSkin2.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ChoosePhotoSkin2 dialog
  10. #include "MyBmpButton2.h"
  11. #include "resource.h"
  12. #include <afxtempl.h>
  13. #include "shockwaveflash.h"
  14. #include "EditListCtrl.h"
  15. #include <vector>
  16. using namespace std;
  17. class ChoosePhotoSkin2 : public CDialog
  18. {
  19. CString m_liapath;
  20. CStringArray m_patharray1;
  21. CStringArray m_patharray2;
  22. CStringArray m_patharray3;
  23. CStringArray m_patharray4;
  24. BOOL m_bSort;
  25. // Construction
  26. public:
  27. void Save();
  28. void GetPhotos();
  29. void CheckForAlbum();
  30. void SortArray();
  31. int m_mode;
  32. void GetData2();
  33. int m_mode2;
  34. void OnDblclkList1();
  35. CString GetSelName(CString name);
  36. CArray<CStringArray, CStringArray>m_sparray;
  37. CStringArray m_noarray;//no备份 ,11,12,13, 格式
  38. CStringArray m_no2array;//no备份 ,11,12,13, 格式
  39. BOOL IsSelPhoto(CString path);
  40. CStringArray* GetCurArray();
  41. void GetNoSelPhoto();
  42. void LoadPhotos();
  43. void GetPath(CString str);
  44. CString GetSPNameFromId(CString id);
  45. float GetSPPriceFromId(CString id);
  46. void SetSPName3();
  47. BOOL OnDel();
  48. void OnRclickList1();
  49. void UpdateChooseZS();
  50. BOOL m_bSave;
  51. BOOL m_bModify;
  52. void UpdateTakeZS();
  53. int GetZS(CString str);
  54. void GetData();
  55. CString m_id;
  56. BOOL TerminateThread();
  57. void LoadThumbImages();
  58. CString m_path;
  59. HWND m_showpichwd;
  60. vector<CString> m_vFileName;
  61. // CListCtrl m_ListCtrl;
  62. CImageList m_ImageListThumb; // image list holding the thumbnails
  63. bool m_bRunning; // Flag to whether thread is on running or not
  64. bool m_bTerminate; // Flag to Thread to be terminated
  65. unsigned int m_dwThreadID; // Thread ID
  66. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  67. CShockwaveFlash m_flashctrl;
  68. Image *m_pBk;
  69. void SetLiaPath(CString path);
  70. void OnPaint2(CWnd *pWnd);
  71. ChoosePhotoSkin2(DWORD id, CWnd *pParent);
  72. CWnd *m_pParent;
  73. CArray<DWORD,DWORD>m_picarray;
  74. CArray<CRect,CRect>m_rcarray;
  75. ChoosePhotoSkin2(CWnd* pParent = NULL); // standard constructor
  76. // Dialog Data
  77. //{{AFX_DATA(ChoosePhotoSkin2)
  78. enum { IDD = IDD_DLGChoosePhotoSkin2 };
  79. CNumEdit m_editnum4;
  80. CNumEdit m_editnum3;
  81. CNumEdit m_editnum2;
  82. CNumEdit m_editnum1;
  83. CEditListCtrl m_List3;
  84. CEditListCtrl m_List2;
  85. CListCtrl m_List1;
  86. CComboBox m_combo1;
  87. CString m_name1;
  88. CString m_name2;
  89. CString m_time4;
  90. CString m_waiter3;
  91. CString m_takezs;
  92. CString m_taoxizs;
  93. CString m_choosezs;
  94. CString m_money3;
  95. CString m_bz3;
  96. CString m_bz2;
  97. CString m_time5;
  98. CString m_urgent;
  99. //}}AFX_DATA
  100. // Overrides
  101. // ClassWizard generated virtual function overrides
  102. //{{AFX_VIRTUAL(ChoosePhotoSkin2)
  103. public:
  104. virtual BOOL PreTranslateMessage(MSG* pMsg);
  105. protected:
  106. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  107. //}}AFX_VIRTUAL
  108. // Implementation
  109. protected:
  110. // Generated message map functions
  111. //{{AFX_MSG(ChoosePhotoSkin2)
  112. virtual BOOL OnInitDialog();
  113. afx_msg void OnPaint();
  114. afx_msg void OnDestroy();
  115. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  116. virtual void OnOK();
  117. virtual void OnCancel();
  118. afx_msg void OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args);
  119. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  120. afx_msg void OnClose();
  121. afx_msg void OnRclickList1(NMHDR* pNMHDR, LRESULT* pResult);
  122. afx_msg void OnButton1();
  123. afx_msg void OnButton2();
  124. afx_msg void OnButton3();
  125. afx_msg void OnButton4();
  126. afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
  127. afx_msg void OnTimer(UINT nIDEvent);
  128. afx_msg void OnSpBox();
  129. afx_msg void OnButton8();
  130. afx_msg void OnButton5();
  131. afx_msg void OnButton6();
  132. DECLARE_EVENTSINK_MAP()
  133. //}}AFX_MSG
  134. afx_msg void OnBtnClick (WPARAM wParam, LPARAM lParam);
  135. afx_msg void OnComMsg (WPARAM wParam, LPARAM lParam);
  136. void OnCommandMenu(UINT nID); //响应菜单命令
  137. afx_msg long UpdateTakeZS(WPARAM inWParam, LPARAM inLParam);
  138. DECLARE_MESSAGE_MAP()
  139. };
  140. //{{AFX_INSERT_LOCATION}}
  141. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  142. #endif // !defined(AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)