CFupingWnd.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #pragma once
  2. #include "../pch/pch.h"
  3. #include "../zhipuzi/CDiandanOrder.h"
  4. #include "../zhipuzi/CZhengcanOrder.h"
  5. class CFupingWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
  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 Notify(TNotifyUI& msg);
  24. LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  25. LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  26. {
  27. if (::IsIconic(*this))
  28. {
  29. bHandled = FALSE;
  30. }
  31. return (wParam == 0) ? TRUE : FALSE;
  32. }
  33. LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  34. {
  35. return 0;
  36. }
  37. LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  38. {
  39. return 0;
  40. }
  41. LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  42. LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  43. LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  44. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
  45. //窗口初始化的时候调用一次,用来处理副屏轮播图展示
  46. void HandleFupingImage();
  47. //停止刷新副屏的线程,程序退出
  48. void Stop();
  49. //刷新副屏显示
  50. void UpdateShow(CDiandanOrder& order, double total_youhui, double total_price, double dabao_money);
  51. void UpdateShow(CZhengcanOrder& order, double total_youhui, double total_price, double dabao_money, double kaitai_money, double chawei_money);
  52. public:
  53. CPaintManagerUI m_pm;
  54. private:
  55. size_t m_curImageNum = 0;
  56. bool m_is_work;
  57. };