Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
2.8 KiB

  1. #ifndef __THUMNAIL_H__
  2. #define __THUMNAIL_H__
  3. /******************************************************************************/
  4. class CThumbNailView : public CWnd
  5. {
  6. DECLARE_DYNAMIC(CThumbNailView)
  7. protected:
  8. class CImgWnd *m_pcImgWnd;
  9. // Generated message map functions
  10. //{{AFX_MSG(CThumbNailView)
  11. afx_msg void OnPaint();
  12. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  13. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  14. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  15. afx_msg void OnThumbnailThumbnail();
  16. afx_msg void OnUpdateThumbnailThumbnail(CCmdUI* pCmdUI);
  17. afx_msg void OnClose();
  18. //}}AFX_MSG
  19. DECLARE_MESSAGE_MAP()
  20. void DrawTracker(CDC *pDC);
  21. public:
  22. CThumbNailView();
  23. CThumbNailView(CImgWnd *pcImgWnd);
  24. ~CThumbNailView();
  25. BOOL Create(DWORD dwStyle, CRect cRectWindow, CWnd *pcParentWnd);
  26. void DrawImage(CDC* pDC);
  27. void RefreshImage(void);
  28. CImgWnd* GetImgWnd(void);
  29. void UpdateThumbNailView();
  30. };
  31. /******************************************************************************/
  32. class CFloatThumbNailView : public CMiniFrmWnd
  33. {
  34. DECLARE_DYNAMIC(CFloatThumbNailView)
  35. protected:
  36. CThumbNailView *m_pcThumbNailView;
  37. // Generated message map functions
  38. //{{AFX_MSG(CFloatThumbNailView)
  39. afx_msg void OnClose();
  40. afx_msg void OnSize(UINT nType, int cx, int cy);
  41. afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. public:
  45. CPoint GetPosition() { return m_ptPosition; }
  46. CSize GetSize() { return m_szSize; }
  47. CFloatThumbNailView();
  48. CFloatThumbNailView(CImgWnd *pcImgWnd);
  49. ~CFloatThumbNailView();
  50. CThumbNailView* GetThumbNailView() { return m_pcThumbNailView; }
  51. virtual BOOL Create(CWnd* pParentWnd);
  52. virtual void PostNcDestroy();
  53. virtual WORD GetHelpOffset() { return ID_WND_GRAPHIC; }
  54. private:
  55. CPoint m_ptPosition;
  56. CSize m_szSize;
  57. };
  58. /******************************************************************************/
  59. class CFullScreenThumbNailView : public CFrameWnd
  60. {
  61. DECLARE_DYNAMIC(CFullScreenThumbNailView)
  62. private:
  63. LONG_PTR m_hOldIcon;
  64. protected:
  65. BOOL m_bSaveShowFlag;
  66. // CBrush m_brBackground;
  67. CThumbNailView *m_pcThumbNailView;
  68. // Generated message map functions
  69. //{{AFX_MSG(CFullScreenThumbNailView)
  70. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  71. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  72. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  73. afx_msg void OnClose ();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. public:
  77. CFullScreenThumbNailView();
  78. CFullScreenThumbNailView(CImgWnd *pcImgWnd);
  79. ~CFullScreenThumbNailView();
  80. virtual BOOL Create(LPCTSTR szCaption);
  81. };
  82. #endif // __THUMNAIL_H__