| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #pragma once
- #include "GdipButton.h"
- #include "DittoWindow.h"
- // QRCodeViewer
- class QRCodeViewer : public CWnd
- {
- DECLARE_DYNAMIC(QRCodeViewer)
- public:
- QRCodeViewer();
- virtual void PostNcDestroy();
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual ~QRCodeViewer();
- CDittoWindow m_DittoWindow;
- BOOL CreateEx(CWnd *pParentWnd, unsigned char* bitmapData, int imageSize, CString desc, int rowHeight, LOGFONT font);
- CStatic m_desc;
- protected:
- afx_msg HITTEST_RET OnNcHitTest(CPoint point);
- afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
- afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
- afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
- afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
- afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
- afx_msg void OnNcPaint();
- DECLARE_MESSAGE_MAP()
- afx_msg void OnPaint();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- unsigned char* m_bitmapData;
- int m_imageSize;
- CGdipButton m_ShowGroupsFolderBottom;
- CGdiImageDrawer m_qrCodeDrawer;
- int m_descRowHeight;
- CFont m_font;
- HBRUSH m_descBackground;
- void MoveControls();
- };
|