#if !defined(AFX_ShowPic22_H__636EAAC4_D01D_4170_93F6_9E363BB72892__INCLUDED_) #define AFX_ShowPic22_H__636EAAC4_D01D_4170_93F6_9E363BB72892__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #include "ChoosePhotoSkin2.h" #include "JPEG.h" #include "MyAnimateWindow.h" #include "PicBar.h" #include "PreviewDlg.h" // 浏览大图; class ShowPic22 : public CDialog { BOOL m_bcompared; CPoint m_startpt; CPoint m_startpt2; CPoint m_startpt3; Image *m_pImagesmall; Image *m_pImagetemp; CRect m_rc; CRect m_rcbak; CRect m_rcscreen; CRect m_picbarrc; Bitmap *m_pbmp; CBitmap m_bmp; CDC m_memdc; CPicture m_pic; BOOL m_bScroll; float m_fscale; MyAnimateWindow m_dlg; // 幻灯播放时的出现效果; PicBar m_PicBar; // 底部工具条; PreviewDlg m_PreviewDlg; // 右边显示缩略图; BOOL m_bProcessing; BOOL m_bShowEffect; // Construction public: // Jeff 以下三变量为外部初始化; int m_pos; // 选片时选中的相片列编号,即要查看的相片; CStringArray *m_pPathArray; // 原图片对应的"m"图片路径; CStringArray *m_pPathArrayBigsize; // 原图片路径数组!变量命名不规则,词不达意更甚。 BOOL m_bChooseBig; void CutPhoto3(); void CutPhoto2(); void ShowInfo(); void OnMouseWheel2(BOOL bZoomOut); void RunPicThread(); BOOL m_bShowName; BOOL m_bInit; Image *m_pImage; void InitRc(Image *img, CRect &rc); CArraym_pImageArray; CArraym_pImageSmallArray; CArraym_nPosArray; void TerminateThread(); 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; // Thread and Event handle BOOL m_bauto; void SetEffect(int effect); void Next(); void Pre(); void Rotate2(); void Rotate1(); void InitRc(); void AutoPic(); ChoosePhotoSkin2 *m_pParent; void LoadImage(); ShowPic22(CWnd* pParent = NULL); // standard constructor enum { IDD = IDD_DLGShowPic2 }; CStatic m_sta1; public: virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg void OnDestroy(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnClose(); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg long ShowInfo2(WPARAM inWParam, LPARAM inLParam); DECLARE_MESSAGE_MAP() }; #endif