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
#pragma once
#include <wx/wx.h>
#include<list>
#include "DataStruct.h"
#include "../common_nopch/WidgetsRenderUtil.h"
class TradeQueueListControl : public wxControl {
private:
    std::list<TradeQueue> queueList;
    int contentHeight;// ÄÚÈݵĸ߶È
    bool suitHeight;
    wxSize queueItemSize;
 
 
 
public:
    TradeQueueListControl(wxWindow* parent, wxWindowID id,
        const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,wxSize queueItemSize = wxSize(50,22));
 
    void OnPaint(wxPaintEvent& event);
 
    void setTradeQueue(std::list<TradeQueue> queueList);
 
    int getContentHeight();
 
    int getDataCount();
 
 
};