#pragma once // CSnapshotMagnifierCtrl command target class AFX_EXT_CLASS CSnapshotMagnifierCtrl : public SWindow { SOUI_CLASS_NAME(CSnapshotMagnifierCtrl, L"SnapshotMagnifierCtrl") public: CSnapshotMagnifierCtrl(void); ~CSnapshotMagnifierCtrl(void); private: Gdiplus::Bitmap* m_pMagnifierBitmap; Gdiplus::Image* m_pImgMagnifierBk; CString m_strSelSize; CString m_strPointColor; public: void SetMagnifierTip(Gdiplus::Bitmap*pMagnifierBitmap, CString strSelSize, CString strPointColor); bool ImageFromIDResource(UINT nID, CString strType, Image * & pImg ,HINSTANCE hInstance); protected: void OnPaint(IRenderTarget *pRT); private: protected: SOUI_MSG_MAP_BEGIN() MSG_WM_PAINT_EX(OnPaint) SOUI_MSG_MAP_END() };