123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #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 // _MSC_VER > 1000
- // ShowPic22.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // ShowPic22 dialog
- #include "ChoosePhotoSkin2.h"
- #include "JPEG.h"
- #include "MyAnimateWindow.h"
- #include "PicBar.h"
- class ShowPic22 : public CDialog
- {
- CPoint m_startpt;
- CPoint m_startpt2;
- 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;
- BOOL m_bProcessing;
- // Construction
- public:
- BOOL m_bInit;
- Image *m_pImage;
- void InitRc(Image *img, CRect &rc);
- CArray<Image*, Image*>m_pImageArray;
- CArray<Image*, Image*>m_pImageSmallArray;
- CArray<int, int>m_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
- int m_pos;
- CStringArray *m_pPathArray;
- // Dialog Data
- //{{AFX_DATA(ShowPic22)
- enum { IDD = IDD_DLGShowPic2 };
- CStatic m_sta1;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(ShowPic22)
- 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(ShowPic22)
- 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
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ShowPic22_H__636EAAC4_D01D_4170_93F6_9E363BB72892__INCLUDED_)
|