admin
2024-07-05 3ef188e6075649f4c72e3e7588d8966e1071f2ff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#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);
 
};