#pragma once #include "../pch/pch.h" #include "CMainWnd.h" class CSaomaCikaWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI { public: LPCTSTR GetWindowClassName() const { return _T("UIMemoWndFrame"); }; UINT GetClassStyle() const { return UI_CLASSSTYLE_DIALOG; }; void OnFinalMessage(HWND /*hWnd*/) { //WindowImplBase::OnFinalMessage(hWnd); m_pm.RemovePreMessageFilter(this); //delete this; }; void Init(); std::string getContent(); void SetTitle(std::wstring title); void Notify(TNotifyUI& msg); LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { if (::IsIconic(*this)) { bHandled = FALSE; } return (wParam == 0) ? TRUE : FALSE; } LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { return 0; } LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam); LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled); void StartYanzheng(); void ConfirmMember(); public: CPaintManagerUI m_pm; std::string m_content; std::wstring m_errorInfo; std::string m_timescoupon_id; std::string m_timescoupon_name; std::string m_deduct_type; std::string m_deduct_way; std::string m_discount; std::string m_discount_value; std::string m_full_reduce; std::string m_full_reduce_value; std::string m_offer; std::string m_offer_value; std::string m_bind_foods_name; std::string m_bind_foods_id; };