#pragma once #include #include #include #include #include "DataStruct.h" #include "../common_nopch/WidgetsRenderUtil.h" #include "TradeQueueListControl.h" #include using namespace std; class RequestThread : public wxThread { public: RequestThread() : wxThread(wxTHREAD_DETACHED) {} protected: virtual ExitCode Entry() override { while (TRUE) { } return (ExitCode)0; } }; class TradeQueueFrame:public wxFrame { private: TradeQueueListControl* listControl; TradeQueueListControl* dealBigMoneyListControl; bool killed; wxScrolledWindow* scrolledWindow; string latest_request_result; std::thread *requestThread; public: TradeQueueFrame(const wxString& title, wxString code, wxPoint position=wxDefaultPosition, wxSize size = wxDefaultSize); ~TradeQueueFrame(); void OnClose(wxCloseEvent& event); void OnSize(wxSizeEvent& event); private: /// /// ÖØÐÂÉèÖùö¶¯ÐÅÏ¢ /// void resetScrollInfo(); // ÇëÇóÁбí // »ñÈ¡½»Ò×¶ÓÁÐ static void requestTradeQueue(wxString code, TradeQueueFrame* context); static void requestDealBigList(wxString code, TradeQueueFrame* context); };