本文整理汇总了C++中CExpression::Compile方法的典型用法代码示例。如果您正苦于以下问题:C++ CExpression::Compile方法的具体用法?C++ CExpression::Compile怎么用?C++ CExpression::Compile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CExpression
的用法示例。
在下文中一共展示了CExpression::Compile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LoadCurExp
long CDlgStrategyParamConf::LoadCurExp(WPARAM wParam /*= 0*/, LPARAM lParam /*= 0*/)
{
m_sSingleSel.m_nType = hx_DefMaxValues;
CDlgFormulaMan* pParentDlg = (CDlgFormulaMan*)AfxGetMainWnd();
if( pParentDlg == NULL )
return 0;
EnableItem(FALSE);
if( wParam == CTreeCtrlFormula::YlsBrowser )
{
if(m_nType == 1)
{
CTreeGroup* pTreeGroup = (CTreeGroup*)lParam;
// CString strItem = *(CString*)lParam;
/* if( !strItem.CompareNoCase(CTreeCtrlFormula::g_strUnionCondition) )
{
m_sSingleSel.m_nType = CExpression::Union;
m_sSingleSel.m_strExp.Format("%s",CTreeCtrlFormula::g_strUnionCondition);
m_wndPeriod.ShowWindow(SW_HIDE);
m_wndPeriodStc.ShowWindow(SW_HIDE);
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);
}*/
// else if( !strItem.CompareNoCase(CTreeCtrlFormula::g_strJiben) )
/* else*/ if( pTreeGroup->m_dwID == CExpression::JiBenMian )
{
m_sSingleSel.m_nType = CExpression::JiBenMian;
m_sSingleSel.m_strExp.Format("%s",CTreeCtrlFormula::g_strJiben);
m_wndPeriod.ShowWindow(SW_HIDE);
#ifdef _ONLY_SUPPORT_DAYLINE
m_wndPeriod.SetCurSel(0);
#else
m_wndPeriod.SetCurSel(5);
#endif
m_wndPeriodStc.ShowWindow(SW_HIDE);
m_wndConNotes.ShowWindow(SW_SHOW);
m_wndConNotes.SetWindowText(HS_LANGUAGE("财务指标"));
m_wndCon.ShowWindow(SW_SHOW);
m_wndStaticCon.ShowWindow(SW_SHOW);
m_wndCompare.ShowWindow(SW_SHOW);
m_wndData1.ShowWindow(SW_SHOW);
m_wndAndOr.ShowWindow(SW_HIDE);
m_wndData2.ShowWindow(SW_HIDE);
m_wndMiddle.ShowWindow(SW_HIDE);
m_wndData1.ResetContent();
m_wndData2.ResetContent();
m_wndCon.ResetContent();
CDlgCondition::InitCWData(&m_wndCon,YLS_GB_GUBEN_NAME);
CDlgCondition::InitCWData(&m_wndCon,YLS_Cj_GUBEN_NAME);
CDlgCondition::InitCondition(&m_wndCompare,4);
}
}
}
else if( wParam == CCompileEditView::UpdateExpress )
{
CDlgFormulaEdit* pDlg = pParentDlg->GetExpDlg();
if( pDlg != NULL )
{
if(pDlg->SendMessage(HX_USER_LOADCUR,wParam,lParam))
{
pParentDlg->Enable(FALSE);
pDlg->ShowWindowEx(SW_SHOWNORMAL);
}
}
}
else if( wParam == HX_EXPRESSSENTENCE )
{
//EnableItem(FALSE);
CExpression* pExpression = (CExpression*)lParam;
if( pExpression == NULL )
return 0;
//
if(m_nType == 1)
{
m_sSingleSel.m_nType = pExpression->GetExpressType();
//.........这里部分代码省略.........