This commit is contained in:
2013-09-02 20:43:43 +00:00
parent 541823d843
commit 0be482156a
10 changed files with 54 additions and 20 deletions

View File

@@ -4,7 +4,6 @@
#pragma once
#include "afxwin.h"
#include "EventHandler.h"
#include "OptionEventHandler.h"
#include "Trader.h"
#include <string>
#include <vector>
@@ -34,7 +33,7 @@ enum CP_STATE
};
// CCPRobotDlg 대화 상자
class CCPRobotDlg : public CDialog, public IEventHandler
class CCPRobotDlg : public CDialog, public IEventHandlerSysDib, public IEventHandlerDib
{
// 생성입니다.
public:
@@ -52,7 +51,8 @@ public:
afx_msg void OnHotKey(UINT nHotKeyId, UINT nKey1, UINT nKey2);
virtual void Received();
virtual void ReceivedSysDib();
virtual void ReceivedDib();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
@@ -77,7 +77,7 @@ private:
vector<string> m_OpCodeList;
CpSysDib::ISysDibPtr m_pOpJpBid;
CEventHandlerSysDib m_EventHandler;
CEventHandlerSysDib m_EventHandlerSysDib;
string m_AccountNum;
@@ -101,6 +101,9 @@ private:
int m_iOrderNum;
CTime m_BoughtT;
CpDib::IDibPtr m_pCpFConclusion;
CEventHandlerDib m_EventHandlerDib;
ATOM m_IdKeyFxCall;
ATOM m_IdKeyFxPut;
ATOM m_IdKeyFxStop;
@@ -116,7 +119,4 @@ private:
inline void SwitchState(const CP_STATE enState);
void CPLog(const std::string fmt, ...);
public:
afx_msg void OnBnClickedButton1();
};