CZhengcanSaomadiancanWnd.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #pragma once
  2. #include "../pch/pch.h"
  3. #include "CMainWnd.h"
  4. #include "../ui/CModalWnd.h"
  5. class CZhengcanPageUI;
  6. class CZhengcanSaomadiancanWnd : public CModalWnd
  7. {
  8. public:
  9. LPCTSTR GetWindowClassName() const
  10. {
  11. return _T("UIMemoWndFrame");
  12. };
  13. UINT GetClassStyle() const
  14. {
  15. return UI_CLASSSTYLE_DIALOG;
  16. };
  17. void OnFinalMessage(HWND /*hWnd*/)
  18. {
  19. //WindowImplBase::OnFinalMessage(hWnd);
  20. m_pm.RemovePreMessageFilter(this);
  21. //delete this;
  22. };
  23. void Init();
  24. void RefreshOrder();
  25. void DoRefreshOrder();
  26. void SetPageUI(CZhengcanPageUI* page)
  27. {
  28. m_pageUI = page;
  29. }
  30. void SetTitle(std::wstring title);
  31. void Notify(TNotifyUI& msg);
  32. LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  33. LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  34. {
  35. if (::IsIconic(*this))
  36. {
  37. bHandled = FALSE;
  38. }
  39. return (wParam == 0) ? TRUE : FALSE;
  40. }
  41. LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  42. {
  43. return 0;
  44. }
  45. LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  46. {
  47. return 0;
  48. }
  49. LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  50. LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  51. LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  52. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
  53. //处理键盘捕捉结果
  54. void HandleTextCapture(std::string content)
  55. {
  56. }
  57. void QuerenOrder(std::string order_id, std::string jiacai_no);
  58. void DoQuerenOrder();
  59. void JujueOrder(std::string order_id, std::string jiacai_no);
  60. void DoJujueOrder();
  61. public:
  62. CPaintManagerUI m_pm;
  63. CZhengcanPageUI* m_pageUI;
  64. bool m_is_wangluoqingqiu = false;
  65. //正在处理确认或者作废的相关信息
  66. std::string m_order_id;
  67. std::string m_jiacai_no;
  68. };