diff --git a/CPRobot.rc b/CPRobot.rc index b862de0..2851ec7 100644 --- a/CPRobot.rc +++ b/CPRobot.rc @@ -115,7 +115,7 @@ BEGIN COMBOBOX IDC_COMBO_WINDUP_TICK,259,120,53,58,CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_TABSTOP DEFPUSHBUTTON "°Ë»ö",IDC_BUTTON_SEARCH,205,147,50,14 PUSHBUTTON "°Å·¡ ½ÃÀÛ",IDC_BUTTON_START_DEAL,263,147,50,14 - LISTBOX IDC_LIST_ITEMS,7,169,305,100,LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP + LISTBOX IDC_LIST_ITEMS,7,169,305,100,LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP END diff --git a/CPRobotDlg.cpp b/CPRobotDlg.cpp index c19d0fe..d1d453d 100644 Binary files a/CPRobotDlg.cpp and b/CPRobotDlg.cpp differ diff --git a/CPRobotDlg.h b/CPRobotDlg.h index 7a81023..e392cc1 100644 --- a/CPRobotDlg.h +++ b/CPRobotDlg.h @@ -39,15 +39,6 @@ struct CP_PRICEINFO }; -enum CP_STATE -{ - CPS_WAIT=0, - CPS_LOOKING, - CPS_LOOKING_DEAL, - CPS_BUYING, - CPS_WAITING_SELL, - CPS_SELLING -}; // CCPRobotDlg ´ëÈ­ »óÀÚ class CCPRobotDlg : public CDialog, public IEventHandlerSysDib, public IEventHandlerDib @@ -87,9 +78,6 @@ protected: HICON m_hIcon; private: - CP_STATE m_enState; - CP_STATE m_enPrevState; - CListBox m_ResultList; vector m_OpCodeList; @@ -112,13 +100,7 @@ private: BOOL m_bBuyOnBid1; BOOL m_bPutOption; - string m_CurCode; - float m_fBoughtPrice; - float m_fHighestBid1; - float m_fCurBid1; - int m_iBoughtCnt; - int m_iOrderNum; - CTime m_BoughtT; + BOOL m_bLookingDeal; vector m_OrderList; @@ -143,8 +125,6 @@ private: void WindUp(const string& Code); void CancelOrder(const string& Code); - inline void SwitchState(const CP_STATE enState); - void CPLog(const string fmt, ...); };