CSaomaCikaWnd.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #pragma once
  2. #include "../pch/pch.h"
  3. #include "CMainWnd.h"
  4. #include "CModalWnd.h"
  5. class CSaomaCikaWnd : public CModalWnd
  6. {
  7. public:
  8. LPCTSTR GetWindowClassName() const
  9. {
  10. return _T("UIMemoWndFrame");
  11. };
  12. UINT GetClassStyle() const
  13. {
  14. return UI_CLASSSTYLE_DIALOG;
  15. };
  16. void OnFinalMessage(HWND /*hWnd*/)
  17. {
  18. //WindowImplBase::OnFinalMessage(hWnd);
  19. m_pm.RemovePreMessageFilter(this);
  20. //delete this;
  21. };
  22. void Init();
  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. //´¦Àí¼üÅ̲¶×½½á¹û
  46. void HandleTextCapture(std::string content);
  47. public:
  48. CPaintManagerUI m_pm;
  49. std::string m_code;
  50. std::wstring m_errorInfo;
  51. std::string m_timescoupon_id;
  52. std::string m_timescoupon_name;
  53. std::string m_deduct_type;
  54. std::string m_deduct_way;
  55. std::string m_discount;
  56. std::string m_discount_value;
  57. std::string m_full_reduce;
  58. std::string m_full_reduce_value;
  59. std::string m_offer;
  60. std::string m_offer_value;
  61. std::string m_bind_foods_name;
  62. std::string m_bind_foods_id;
  63. };