#pragma once
|
|
#include "SellStruct.h"
|
#include "../common/CMyListCtrl.h"
|
#include <map>
|
|
// PositionDlg 对话框
|
|
class PositionDlg : public CDialogEx
|
{
|
DECLARE_DYNAMIC(PositionDlg)
|
|
private:
|
std::list<CodePosition> positionList;
|
std::map<string, int> limitUpCodeCountMap;
|
|
|
|
public:
|
PositionDlg(CWnd* pParent = nullptr); // 标准构造函数
|
virtual ~PositionDlg();
|
// 更新持仓
|
void updatePositions();
|
|
|
// 对话框数据
|
#ifdef AFX_DESIGN_TIME
|
enum { IDD = IDD_DIALOG_POSITION };
|
#endif
|
|
private:
|
static void requestAllPositions(PositionDlg* context);
|
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
DECLARE_MESSAGE_MAP()
|
|
|
public:
|
virtual BOOL OnInitDialog();
|
CMyListCtrl listPositionCtrl;
|
afx_msg void OnNMCustomdrawListRules(NMHDR* pNMHDR, LRESULT* pResult);
|
afx_msg void OnBnClickedButton1();
|
};
|