QRCodeViewer.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. unsigned char* m_bitmapData;
  30. int m_imageSize;
  31. CGdipButton m_ShowGroupsFolderBottom;
  32. CGdiImageDrawer m_qrCodeDrawer;
  33. int m_descRowHeight;
  34. CFont m_font;
  35. HBRUSH m_descBackground;
  36. void MoveControls();
  37. };