CJiaoyihuizongWnd.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #pragma once
  2. #include "../helper/WndHelper.h"
  3. #include "CDingweiWnd.h"
  4. class CValueWnd;
  5. class CJiaoyihuizongWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
  6. {
  7. public:
  8. CJiaoyihuizongWnd(CValueWnd* value)
  9. {
  10. m_valueWnd = value;
  11. }
  12. LPCTSTR GetWindowClassName() const
  13. {
  14. return _T("UIJiaoyihuizongFrame");
  15. };
  16. UINT GetClassStyle() const
  17. {
  18. return UI_CLASSSTYLE_DIALOG;
  19. };
  20. void OnFinalMessage(HWND /*hWnd*/)
  21. {
  22. m_pm.RemovePreMessageFilter(this);
  23. delete this;
  24. };
  25. void Init();
  26. void OnPrepare()
  27. {
  28. }
  29. void Notify(TNotifyUI& msg);
  30. void HandleClickMsg(TNotifyUI& msg);
  31. void HandleSelectChangeMsg(TNotifyUI& msg);
  32. void HandleItemSelectMsg(TNotifyUI& msg);
  33. LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  34. LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  35. {
  36. if (::IsIconic(*this))
  37. {
  38. bHandled = FALSE;
  39. }
  40. return (wParam == 0) ? TRUE : FALSE;
  41. }
  42. LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  43. {
  44. return 0;
  45. }
  46. LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  47. {
  48. return 0;
  49. }
  50. LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  51. LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  52. LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  53. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
  54. void StartQuery();
  55. void StartRefreshWork();
  56. public:
  57. CPaintManagerUI m_pm;
  58. private:
  59. CValueWnd* m_valueWnd;
  60. std::string m_start_time;
  61. std::string m_end_time;
  62. int m_is_query = false;
  63. };