ShowPic22.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. #include "PreviewDlg.h"
  15. class ShowPic22 : public CDialog
  16. {
  17. BOOL m_bcompared;
  18. CPoint m_startpt;
  19. CPoint m_startpt2;
  20. CPoint m_startpt3;
  21. Image *m_pImagesmall;
  22. Image *m_pImagetemp;
  23. CRect m_rc;
  24. CRect m_rcbak;
  25. CRect m_rcscreen;
  26. CRect m_picbarrc;
  27. Bitmap *m_pbmp;
  28. CBitmap m_bmp;
  29. CDC m_memdc;
  30. CPicture m_pic;
  31. BOOL m_bScroll;
  32. float m_fscale;
  33. MyAnimateWindow m_dlg;
  34. PicBar m_PicBar;
  35. PreviewDlg m_PreviewDlg;
  36. BOOL m_bProcessing;
  37. BOOL m_bShowEffect;
  38. // Construction
  39. public:
  40. BOOL m_bChooseBig;
  41. void CutPhoto3();
  42. void CutPhoto2();
  43. void ShowInfo();
  44. void OnMouseWheel2(BOOL bZoomOut);
  45. void RunPicThread();
  46. BOOL m_bShowName;
  47. BOOL m_bInit;
  48. Image *m_pImage;
  49. void InitRc(Image *img, CRect &rc);
  50. CArray<Image*, Image*>m_pImageArray;
  51. CArray<Image*, Image*>m_pImageSmallArray;
  52. CArray<int, int>m_nPosArray;
  53. void TerminateThread();
  54. bool m_bRunning; // Flag to whether thread is on running or not
  55. bool m_bTerminate; // Flag to Thread to be terminated
  56. unsigned int m_dwThreadID; // Thread ID
  57. HANDLE m_hThread; // Thread and Event handle
  58. BOOL m_bauto;
  59. void SetEffect(int effect);
  60. void Next();
  61. void Pre();
  62. void Rotate2();
  63. void Rotate1();
  64. void InitRc();
  65. void AutoPic();
  66. ChoosePhotoSkin2 *m_pParent;
  67. void LoadImage();
  68. ShowPic22(CWnd* pParent = NULL); // standard constructor
  69. int m_pos;
  70. CStringArray *m_pPathArray;
  71. CStringArray *m_pPathArrayBigsize;
  72. // Dialog Data
  73. //{{AFX_DATA(ShowPic22)
  74. enum { IDD = IDD_DLGShowPic2 };
  75. CStatic m_sta1;
  76. //}}AFX_DATA
  77. // Overrides
  78. // ClassWizard generated virtual function overrides
  79. //{{AFX_VIRTUAL(ShowPic22)
  80. public:
  81. virtual BOOL PreTranslateMessage(MSG* pMsg);
  82. protected:
  83. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  84. //}}AFX_VIRTUAL
  85. // Implementation
  86. protected:
  87. // Generated message map functions
  88. //{{AFX_MSG(ShowPic22)
  89. virtual BOOL OnInitDialog();
  90. afx_msg void OnPaint();
  91. afx_msg void OnDestroy();
  92. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  93. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  94. afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  95. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  96. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  97. afx_msg void OnTimer(UINT nIDEvent);
  98. afx_msg void OnClose();
  99. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  100. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  101. afx_msg long ShowInfo2(WPARAM inWParam, LPARAM inLParam);
  102. //}}AFX_MSG
  103. DECLARE_MESSAGE_MAP()
  104. };
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  107. #endif // !defined(AFX_ShowPic22_H__636EAAC4_D01D_4170_93F6_9E363BB72892__INCLUDED_)