CSaomaCikaWnd.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #pragma once
  2. #include "../pch/pch.h"
  3. #include "CMainWnd.h"
  4. class CSaomaCikaWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
  5. {
  6. public:
  7. LPCTSTR GetWindowClassName() const
  8. {
  9. return _T("UIMemoWndFrame");
  10. };
  11. UINT GetClassStyle() const
  12. {
  13. return UI_CLASSSTYLE_DIALOG;
  14. };
  15. void OnFinalMessage(HWND /*hWnd*/)
  16. {
  17. //WindowImplBase::OnFinalMessage(hWnd);
  18. m_pm.RemovePreMessageFilter(this);
  19. //delete this;
  20. };
  21. void Init();
  22. std::string getContent();
  23. void SetTitle(std::wstring title);
  24. void Notify(TNotifyUI& msg);
  25. LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  26. LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  27. {
  28. if (::IsIconic(*this))
  29. {
  30. bHandled = FALSE;
  31. }
  32. return (wParam == 0) ? TRUE : FALSE;
  33. }
  34. LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  35. {
  36. return 0;
  37. }
  38. LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  39. LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  40. LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  41. LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  42. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
  43. void StartYanzheng();
  44. void ConfirmMember();
  45. public:
  46. CPaintManagerUI m_pm;
  47. std::string m_content;
  48. std::wstring m_errorInfo;
  49. std::string m_timescoupon_id;
  50. std::string m_timescoupon_name;
  51. std::string m_deduct_type;
  52. std::string m_deduct_way;
  53. std::string m_discount;
  54. std::string m_discount_value;
  55. std::string m_full_reduce;
  56. std::string m_full_reduce_value;
  57. std::string m_offer;
  58. std::string m_offer_value;
  59. std::string m_bind_foods_name;
  60. std::string m_bind_foods_id;
  61. };