本文整理汇总了C++中CExpression::GetNotes方法的典型用法代码示例。如果您正苦于以下问题:C++ CExpression::GetNotes方法的具体用法?C++ CExpression::GetNotes怎么用?C++ CExpression::GetNotes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CExpression
的用法示例。
在下文中一共展示了CExpression::GetNotes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LoadCurExp
//.........这里部分代码省略.........
m_wndData2.ShowWindow(SW_HIDE);
m_wndMiddle.ShowWindow(SW_HIDE);
}
break;
case CExpression::Exchange:
{
//"选出交易系统发出以下信号的股票:");
m_sSingleSel.m_SubData.m_cType = FormulaCompareSubData::Exchange;
m_wndPeriod.ShowWindow(SW_SHOW);
#ifdef _ONLY_SUPPORT_DAYLINE
m_wndPeriod.SetCurSel(0);
#else
m_wndPeriod.SetCurSel(5);
#endif
m_wndPeriodStc.ShowWindow(SW_SHOW);
m_wndConNotes.ShowWindow(SW_HIDE);
m_wndConNotes.SetWindowText(HS_LANGUAGE("发出"));
m_wndCon.ShowWindow(SW_HIDE);
m_wndStaticCon.ShowWindow(SW_HIDE);
m_wndCompare.ShowWindow(SW_HIDE);
m_wndData1.ShowWindow(SW_HIDE);
m_wndAndOr.ShowWindow(SW_HIDE);
m_wndData2.ShowWindow(SW_HIDE);
m_wndMiddle.ShowWindow(SW_HIDE);
}
break;
case CExpression::MoreKLine:
{
//"选出五彩K线发出指示的股票:");
m_sSingleSel.m_SubData.m_cType = FormulaCompareSubData::MoreKLine;
m_wndPeriod.ShowWindow(SW_SHOW);
#ifdef _ONLY_SUPPORT_DAYLINE
m_wndPeriod.SetCurSel(0);
#else
m_wndPeriod.SetCurSel(5);
#endif
m_wndPeriodStc.ShowWindow(SW_SHOW);
m_wndConNotes.ShowWindow(SW_HIDE);
m_wndCon.ShowWindow(SW_HIDE);
m_wndStaticCon.ShowWindow(SW_HIDE);
m_wndCompare.ShowWindow(SW_HIDE);
m_wndData1.ShowWindow(SW_HIDE);
m_wndAndOr.ShowWindow(SW_HIDE);
m_wndData2.ShowWindow(SW_HIDE);
m_wndMiddle.ShowWindow(SW_HIDE);
}
break;
}
}
// 注释/参数修改
// CWnd* pWnd = GetDlgItem(IDC_NOTES);
// pWnd->ShowWindow(SW_SHOW);
m_EditEidolon.ShowWindow(SW_SHOW);
CDlgNotesAndEidolon* pDlgNotes = pParentDlg->GetDlgNotes();
CDlgNotesAndEidolon* pDlgParam = pParentDlg->GetDlgParam();
if( pDlgNotes != NULL &&
pDlgNotes->IsWindowVisible() )
{
pDlgNotes->SetNotes(pExpression->GetNotes(), pExpression->GetName());
}
if( m_EditEidolon.m_hWnd != NULL )
{
CString strText;
strText.Format("%s",pExpression->GetEidolon());
if( !strText.IsEmpty() )
{
m_EditEidolon.SetText(strText,pExpression->GetParamVar(),FALSE);
}
else
{
CStringArray* pArray = pExpression->GetDefEidolon();
if(pArray->GetSize() <= 1)
{
pArray = NULL;
}
m_EditEidolon.SetText(pArray,pExpression->GetParamVar(),FALSE);
}
m_EditEidolon.Invalidate();
}
}
return 0;
}
示例2: LoadCurExp
long CDlgStrategyHQ::LoadCurExp(WPARAM wParam /*= 0*/, LPARAM lParam /*= 0*/)
{
CDlgFormulaMan* pParentDlg = (CDlgFormulaMan*)AfxGetMainWnd();
if( pParentDlg == NULL )
return 0;
EnableItem(FALSE);
if( wParam == CCompileEditView::UpdateExpress )
{
CDlgFormulaEdit* pDlg = pParentDlg->GetExpDlg();
if( pDlg != NULL )
{
if(pDlg->SendMessage(HX_USER_LOADCUR,wParam,lParam))
{
pParentDlg->Enable(FALSE);
pDlg->ShowWindow(SW_SHOWNORMAL);
}
}
}
else if( wParam == HX_EXPRESSSENTENCE )
{
//EnableItem(FALSE);
CExpression* pExpression = (CExpression*)lParam;
if( pExpression == NULL )
return 0;
CString csName = pExpression->GetName();
CString cExpName = m_pStrategy->m_sExpName;
if (m_bSetVar && csName == cExpName && m_pStrategy->m_pData->m_pCurVal)
{
CExpression *pex = ((CExpValue*)(m_pStrategy->m_pData->m_pCurVal))->GetExp();
if (pex)//设置参数
{
CMapVariabile *pMap = pExpression->GetParamVar();
CMapVariabile *pMv = pex->GetParamVar();
//--------------------------------------------------
if (pMv && pMap)
{
CString key;
CValue *cvalue;
CValue *pval;
POSITION pos;
pos = pMv->GetStartPosition();
while(pos)
{
pMv->GetNextAssoc(pos,key,cvalue);
if (pMap->Lookup(key,pval))
{
((CNumericValue*)pval)->SetValueOnly(cvalue->GetValue());
}
}
//=====================================================================
}
}
}
CString cs = pExpression->GetName();
m_EditEidolon.ShowWindow(SW_SHOW);
CDlgNotesAndEidolon* pDlgNotes = pParentDlg->GetDlgNotes();
CDlgNotesAndEidolon* pDlgParam = pParentDlg->GetDlgParam();
if( pDlgNotes != NULL &&
pDlgNotes->IsWindowVisible() )
{
pDlgNotes->SetNotes(pExpression->GetNotes(), pExpression->GetName());
}
if( m_EditEidolon.m_hWnd != NULL )
{
CString strText;
strText.Format("%s",pExpression->GetEidolon());
if( !strText.IsEmpty() )
{
m_EditEidolon.SetText(strText,pExpression->GetParamVar(),FALSE);
}
else
{
CStringArray* pArray = pExpression->GetDefEidolon();
if(pArray->GetSize() <= 1)
{
pArray = NULL;
}
m_EditEidolon.SetText(pArray,pExpression->GetParamVar(),FALSE);
}
m_EditEidolon.Invalidate();
}
}
return 0;
}