QRCodeViewer.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include "GdipButton.h"
  3. #include "DittoWindow.h"
  4. // QRCodeViewer
  5. class QRCodeViewer : public CWnd
  6. {
  7. DECLARE_DYNAMIC(QRCodeViewer)
  8. public:
  9. QRCodeViewer();
  10. virtual void PostNcDestroy();
  11. virtual BOOL PreTranslateMessage(MSG* pMsg);
  12. virtual ~QRCodeViewer();
  13. CDittoWindow m_DittoWindow;
  14. BOOL CreateEx(CWnd *pParentWnd, unsigned char* bitmapData, int imageSize, CString desc, int rowHeight, LOGFONT font);
  15. CStatic m_desc;
  16. protected:
  17. afx_msg HITTEST_RET OnNcHitTest(CPoint point);
  18. afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  19. afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
  20. afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
  21. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  22. afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
  23. afx_msg void OnNcPaint();
  24. DECLARE_MESSAGE_MAP()
  25. afx_msg void OnPaint();
  26. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  27. afx_msg void OnSize(UINT nType, int cx, int cy);
  28. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  29. afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
  30. afx_msg void OnTimer(UINT_PTR nIDEvent);
  31. unsigned char* m_bitmapData;
  32. int m_imageSize;
  33. CGdipButton m_ShowGroupsFolderBottom;
  34. CGdiImageDrawer m_qrCodeDrawer;
  35. int m_descRowHeight;
  36. CFont m_font;
  37. HBRUSH m_descBackground;
  38. void MoveControls();
  39. };