CFupingWnd.h 1.5 KB

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