| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #pragma once
- #include "../pch/pch.h"
- #include "CMainWnd.h"
- #include "../ui/CModalWnd.h"
- class CZhengcanPageUI;
- class CZhengcanSaomadiancanWnd : public CModalWnd
- {
- public:
- LPCTSTR GetWindowClassName() const
- {
- return _T("UIMemoWndFrame");
- };
- UINT GetClassStyle() const
- {
- return UI_CLASSSTYLE_DIALOG;
- };
- void OnFinalMessage(HWND /*hWnd*/)
- {
- //WindowImplBase::OnFinalMessage(hWnd);
- m_pm.RemovePreMessageFilter(this);
- //delete this;
- };
- void Init();
- void RefreshOrder();
- void DoRefreshOrder();
- void SetPageUI(CZhengcanPageUI* page)
- {
- m_pageUI = page;
- }
- void SetTitle(std::wstring title);
- void Notify(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 HandleTextCapture(std::string content)
- {
- }
- void QuerenOrder(std::string order_id, std::string jiacai_no);
- void DoQuerenOrder();
- void JujueOrder(std::string order_id, std::string jiacai_no);
- void DoJujueOrder();
- public:
- CPaintManagerUI m_pm;
- CZhengcanPageUI* m_pageUI;
- bool m_is_wangluoqingqiu = false;
- //正在处理确认或者作废的相关信息
- std::string m_order_id;
- std::string m_jiacai_no;
- };
|