| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #pragma once
- #include "../helper/WndHelper.h"
- #include "CDingweiWnd.h"
- class CValueWnd;
- class CJiaoyihuizongWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
- {
- public:
- CJiaoyihuizongWnd(CValueWnd* value)
- {
- m_valueWnd = value;
- }
- LPCTSTR GetWindowClassName() const
- {
- return _T("UIJiaoyihuizongFrame");
- };
- UINT GetClassStyle() const
- {
- return UI_CLASSSTYLE_DIALOG;
- };
- void OnFinalMessage(HWND /*hWnd*/)
- {
- m_pm.RemovePreMessageFilter(this);
- delete this;
- };
- void Init();
- void OnPrepare()
- {
- }
- void Notify(TNotifyUI& msg);
- void HandleClickMsg(TNotifyUI& msg);
- void HandleSelectChangeMsg(TNotifyUI& msg);
- void HandleItemSelectMsg(TNotifyUI& msg);
- LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
- LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
- {
- if (::IsIconic(*this))
- {
- bHandled = FALSE;
- }
- return (wParam == 0) ? TRUE : FALSE;
- }
- LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
- {
- return 0;
- }
- LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
- {
- return 0;
- }
- LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
- LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
- LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
- LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
- void StartQuery();
- void StartRefreshWork();
- public:
- CPaintManagerUI m_pm;
- private:
- CValueWnd* m_valueWnd;
- std::string m_start_time;
- std::string m_end_time;
- int m_is_query = false;
- };
|