#pragma once
|
#include <wx/wx.h>
|
#include <wx/listctrl.h>
|
#include <wx/dataview.h>
|
#include<list>
|
#include "DataStruct.h"
|
#include "../common_nopch/WidgetsRenderUtil.h"
|
#include "TradeQueueListControl.h"
|
#include <thread>
|
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:
|
|
/// <summary>
|
/// ÖØÐÂÉèÖùö¶¯ÐÅÏ¢
|
/// </summary>
|
void resetScrollInfo();
|
|
// ÇëÇóÁбí
|
// »ñÈ¡½»Ò×¶ÓÁÐ
|
static void requestTradeQueue(wxString code, TradeQueueFrame* context);
|
|
|
static void requestDealBigList(wxString code, TradeQueueFrame* context);
|
|
};
|