void CFortuneItView::OnFortuneitTest1() { CStock stk; if (m_dlgStk.DoModal() == IDOK) { stk.Requery( m_dlgStk.m_strMarket + m_dlgStk.m_strLable, m_dlgStk.m_Time, m_dlgStk.m_Cycle, true, 10 ); } }
void CFortuneItView::OnFortuneitTest2() { CStock stk; stk.Requery(_T("SZ000002"), CTimePair(COleDateTime(2007, 1, 1, 0, 0, 0), COleDateTime(2007, 5, 31, 23, 59, 59)), STKCYCLE::DAY); }