123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- #if !defined(AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)
- #define AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ChoosePhotoSkin2.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // ChoosePhotoSkin2 dialog
- #include "MyBmpButton2.h"
- #include "resource.h"
- #include <afxtempl.h>
- #include "shockwaveflash.h"
- #include "EditListCtrl.h"
- #include <vector>
- using namespace std;
- class ChoosePhotoSkin2 : public CDialog
- {
- CString m_liapath;
- CStringArray m_patharray1;
- CStringArray m_patharray2;
- CStringArray m_patharray3;
- CStringArray m_patharray4;
- BOOL m_bSort;
- // Construction
- public:
- void Save();
- void GetPhotos();
- void CheckForAlbum();
- void SortArray();
- int m_mode;
- void GetData2();
- int m_mode2;
- void OnDblclkList1();
- CString GetSelName(CString name);
- CArray<CStringArray, CStringArray>m_sparray;
- CStringArray m_noarray;//no备份 ,11,12,13, 格式
- CStringArray m_no2array;//no备份 ,11,12,13, 格式
- BOOL IsSelPhoto(CString path);
- CStringArray* GetCurArray();
- void GetNoSelPhoto();
- void LoadPhotos();
- void GetPath(CString str);
- CString GetSPNameFromId(CString id);
- float GetSPPriceFromId(CString id);
- void SetSPName3();
- BOOL OnDel();
- void OnRclickList1();
- void UpdateChooseZS();
- BOOL m_bSave;
- BOOL m_bModify;
- void UpdateTakeZS();
- int GetZS(CString str);
- void GetData();
- CString m_id;
- BOOL TerminateThread();
- void LoadThumbImages();
- CString m_path;
- HWND m_showpichwd;
- vector<CString> m_vFileName;
- // CListCtrl m_ListCtrl;
- CImageList m_ImageListThumb; // image list holding the thumbnails
- bool m_bRunning; // Flag to whether thread is on running or not
- bool m_bTerminate; // Flag to Thread to be terminated
- unsigned int m_dwThreadID; // Thread ID
- HANDLE m_hThread, m_hEvent; // Thread and Event handle
- CShockwaveFlash m_flashctrl;
- Image *m_pBk;
- void SetLiaPath(CString path);
- void OnPaint2(CWnd *pWnd);
- ChoosePhotoSkin2(DWORD id, CWnd *pParent);
- CWnd *m_pParent;
- CArray<DWORD,DWORD>m_picarray;
- CArray<CRect,CRect>m_rcarray;
- ChoosePhotoSkin2(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(ChoosePhotoSkin2)
- enum { IDD = IDD_DLGChoosePhotoSkin2 };
- CNumEdit m_editnum4;
- CNumEdit m_editnum3;
- CNumEdit m_editnum2;
- CNumEdit m_editnum1;
- CEditListCtrl m_List3;
- CEditListCtrl m_List2;
- CListCtrl m_List1;
- CComboBox m_combo1;
- CString m_name1;
- CString m_name2;
- CString m_time4;
- CString m_waiter3;
- CString m_takezs;
- CString m_taoxizs;
- CString m_choosezs;
- CString m_money3;
- CString m_bz3;
- CString m_bz2;
- CString m_time5;
- CString m_urgent;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(ChoosePhotoSkin2)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(ChoosePhotoSkin2)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg void OnDestroy();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- virtual void OnOK();
- virtual void OnCancel();
- afx_msg void OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args);
- afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnClose();
- afx_msg void OnRclickList1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnButton1();
- afx_msg void OnButton2();
- afx_msg void OnButton3();
- afx_msg void OnButton4();
- afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnSpBox();
- afx_msg void OnButton8();
- afx_msg void OnButton5();
- afx_msg void OnButton6();
- DECLARE_EVENTSINK_MAP()
- //}}AFX_MSG
- afx_msg void OnBtnClick (WPARAM wParam, LPARAM lParam);
- afx_msg void OnComMsg (WPARAM wParam, LPARAM lParam);
- void OnCommandMenu(UINT nID); //响应菜单命令
- afx_msg long UpdateTakeZS(WPARAM inWParam, LPARAM inLParam);
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)
|