Files
CPRobot/CPRobotDlg.h
2013-08-22 04:26:57 +00:00

72 lines
1.6 KiB
C++

// CPRobotDlg.h : 헤더 파일
//
#pragma once
#include "DataMgr.h"
#include "afxwin.h"
#include "EventHandler.h"
#include "OptionEventHandler.h"
#include "Trader.h"
struct OPTION_DATA
{
std::string m_Code;
float m_afOfferPrice[5];
int m_aiOfferCnt[5];
float m_afBidPrice[5];
int m_aiBidCnt[5];
};
// CCPRobotDlg 대화 상자
class CCPRobotDlg : public CDialog, public IEventHandler
{
// 생성입니다.
public:
CCPRobotDlg(CWnd* pParent = NULL); // 표준 생성자입니다.
// 대화 상자 데이터입니다.
enum { IDD = IDD_CPROBOT_DIALOG };
afx_msg void OnBnClickedButtonRefreshBalance();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnBnClickedButtonStartDeal();
afx_msg void OnBnClickedButtonSearch();
afx_msg void OnBnClickedRadioBid();
afx_msg void OnBnClickedRadioAsk();
afx_msg void OnEnChangeEditOrderingprice();
virtual void Received();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
virtual BOOL DestroyWindow();
// 생성된 메시지 맵 함수
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
HICON m_hIcon;
private:
void UpdateDataCustom(const BOOL bWndToVariable);
CListBox m_ResultList;
CDataMgr* m_pDataMgr;
ICpOptionCodePtr m_pOpCode;
ISysDibPtr m_pOpCurOnly;
ISysDibPtr m_pOpJpBid;
CEventHandler m_EventHandler;
std::vector<OPTION_DATA> m_PutDataList;
//ISysDibPtr m_pOpMst;
CTrader* m_pTrader;
std::vector<COptionEventHandler*> m_HandlerList;
};