| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #pragma once
- #include "../helper/WndHelper.h"
- #include "CDingweiWnd.h"
- class CValueWnd;
- class CSystemSettingWnd : public CWindowWnd, public INotifyUI, public IMessageFilterUI
- {
- public:
- CSystemSettingWnd(CValueWnd* value)
- {
- m_valueWnd = value;
- }
- LPCTSTR GetWindowClassName() const
- {
- return _T("UISystemSettingFrame");
- };
- UINT GetClassStyle() const
- {
- return UI_CLASSSTYLE_DIALOG;
- };
- void OnFinalMessage(HWND /*hWnd*/)
- {
- //WindowImplBase::OnFinalMessage(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 OnKeyDown(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 SetDingweiWnd(std::wstring value, HWND hWnd);
- void SetOcrWnd(RECT rect);
- CEditUI* GetFocusEdit();
- private:
- void FindValueWnd(std::wstring value);
- void FindDingweiWnd(HWND hWnd);
- public:
- CPaintManagerUI m_pm;
- private:
- CValueWnd* m_valueWnd;
- int m_nType = 1;
- HWND m_DingweiWnd = NULL;
- RECT m_ocrRect;
- //ÉèÖÿì½Ý¼üÏà¹Ø
- UINT m_mod = 0;
- UINT m_vk = 0;
- bool m_isSet = false;
- bool m_is_kuaijiepan_page = false;
- int m_kuaijiejian_type = 0;
- };
|