ShowPic22.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #if !defined(AFX_ShowPic22_H__636EAAC4_D01D_4170_93F6_9E363BB72892__INCLUDED_)
  2. #define AFX_ShowPic22_H__636EAAC4_D01D_4170_93F6_9E363BB72892__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ShowPic22.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ShowPic22 dialog
  10. #include "ChoosePhotoSkin2.h"
  11. #include "JPEG.h"
  12. #include "MyAnimateWindow.h"
  13. #include "PicBar.h"
  14. class ShowPic22 : public CDialog
  15. {
  16. CPoint m_startpt;
  17. CPoint m_startpt2;
  18. Image *m_pImagesmall;
  19. Image *m_pImagetemp;
  20. CRect m_rc;
  21. CRect m_rcbak;
  22. CRect m_rcscreen;
  23. CRect m_picbarrc;
  24. Bitmap *m_pbmp;
  25. CBitmap m_bmp;
  26. CDC m_memdc;
  27. CPicture m_pic;
  28. BOOL m_bScroll;
  29. float m_fscale;
  30. MyAnimateWindow m_dlg;
  31. PicBar m_PicBar;
  32. BOOL m_bProcessing;
  33. // Construction
  34. public:
  35. BOOL m_bInit;
  36. Image *m_pImage;
  37. void InitRc(Image *img, CRect &rc);
  38. CArray<Image*, Image*>m_pImageArray;
  39. CArray<Image*, Image*>m_pImageSmallArray;
  40. CArray<int, int>m_nPosArray;
  41. void TerminateThread();
  42. bool m_bRunning; // Flag to whether thread is on running or not
  43. bool m_bTerminate; // Flag to Thread to be terminated
  44. unsigned int m_dwThreadID; // Thread ID
  45. HANDLE m_hThread; // Thread and Event handle
  46. BOOL m_bauto;
  47. void SetEffect(int effect);
  48. void Next();
  49. void Pre();
  50. void Rotate2();
  51. void Rotate1();
  52. void InitRc();
  53. void AutoPic();
  54. ChoosePhotoSkin2 *m_pParent;
  55. void LoadImage();
  56. ShowPic22(CWnd* pParent = NULL); // standard constructor
  57. int m_pos;
  58. CStringArray *m_pPathArray;
  59. // Dialog Data
  60. //{{AFX_DATA(ShowPic22)
  61. enum { IDD = IDD_DLGShowPic2 };
  62. CStatic m_sta1;
  63. //}}AFX_DATA
  64. // Overrides
  65. // ClassWizard generated virtual function overrides
  66. //{{AFX_VIRTUAL(ShowPic22)
  67. public:
  68. virtual BOOL PreTranslateMessage(MSG* pMsg);
  69. protected:
  70. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  71. //}}AFX_VIRTUAL
  72. // Implementation
  73. protected:
  74. // Generated message map functions
  75. //{{AFX_MSG(ShowPic22)
  76. virtual BOOL OnInitDialog();
  77. afx_msg void OnPaint();
  78. afx_msg void OnDestroy();
  79. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  80. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  81. afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  82. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  83. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  84. afx_msg void OnTimer(UINT nIDEvent);
  85. afx_msg void OnClose();
  86. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  87. //}}AFX_MSG
  88. DECLARE_MESSAGE_MAP()
  89. };
  90. //{{AFX_INSERT_LOCATION}}
  91. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  92. #endif // !defined(AFX_ShowPic22_H__636EAAC4_D01D_4170_93F6_9E363BB72892__INCLUDED_)