本文整理汇总了C++中CExpression::GetDescribe方法的典型用法代码示例。如果您正苦于以下问题:C++ CExpression::GetDescribe方法的具体用法?C++ CExpression::GetDescribe怎么用?C++ CExpression::GetDescribe使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CExpression
的用法示例。
在下文中一共展示了CExpression::GetDescribe方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnLvnItemActivateResultlist
void CDlgFormulaFind::OnLvnItemActivateResultlist(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMITEMACTIVATE pNMIA = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
DWORD dwData = m_wndResultList.GetItemData(pNMIA->iItem);
//发双击在K线处显示消息
//双击指标 将指标发送回外部
if(m_pParentWnd != NULL)
{
m_pParentWnd->SendMessage(HX_USER_DRAGDATA,
HSCurKeyInfo::UpdateExpressData/*HX_USER_DRAGDATA-1*/, (LPARAM)dwData);
if( !m_pParentWnd->IsZoomed() && !m_pParentWnd->IsIconic() )
{
CRect rect,rcDes,rcThis;
CWnd* pDesWnd = GetDesktopWindow();
if( pDesWnd )
{
pDesWnd->GetWindowRect(rcDes);
}
m_pParentWnd->GetWindowRect(rect);
this->GetWindowRect(rcThis);
if( rect.right + rcThis.Width() > rcDes.right )
rect.right = rcDes.right - rcThis.Width();
this->SetWindowPos(NULL,rect.right,rcThis.top,0,0,SWP_NOSIZE);
}
//m_pParentWnd->SetFocus();
}
else
{
CExpression* pExpression = (CExpression*)dwData;
ExpPropery NameProp;
NameProp.m_dExpType = pExpression->GetExpressType();
NameProp.m_strName.Format("%s", pExpression->GetName());
NameProp.m_strDescribe.Format("%s", pExpression->GetDescribe());
NameProp.m_bStyle = pExpression->GetStyle();
if ( g_pFormulaMan )
g_pFormulaMan->SendLinkMsg(DiagramMsg_FormulaParamChanged, (LPARAM)&NameProp);
}
*pResult = 0;
}
示例2: Compile
//.........这里部分代码省略.........
pExpresie->SetDescribe(strText);
}
pWnd = pDlg->GetDlgItem(IDC_PWDEDIT); // 密码
if(pWnd != NULL && !(pWnd->GetStyle() & WS_DISABLED) )
{
pWnd->GetWindowText(strText);
pExpresie->SetPWD(strText);
}
if(pDlg->m_pDlgNotes != NULL) // 注释
{
strText = pDlg->m_pDlgNotes->GetText();
pExpresie->SetNotes(strText);
}
if( pDlg->m_pDlgEidolon ) // 参数精灵
{
strText = pDlg->m_pDlgEidolon->GetText();
pExpresie->SetEidolon(strText);
}
if( m_pEstopPeriodDlg != NULL )
{
*pExpresie->GetEstopPeriod() = m_pEstopPeriodDlg->GetEstopPeriod(); // 禁用周期
*pExpresie->GetDefaultPeriod() = m_pEstopPeriodDlg->GetDefaultPeriod(); // 缺省周期
}
// 更新树
if( pDlg->m_pFormulaMan != NULL )
{
pHxTreeCtrl = pDlg->m_pFormulaMan->GetCurTree((WORD)pDlg->m_nExpressType);
if(pHxTreeCtrl != NULL)
{
//pExpresie->SetExpressType(pHxTreeCtrl->GetType());
if(pValoare != NULL)
{
//pHxTreeCtrl->UpdateTreeItemData(pValoare,pValue);
}
else
{
if(pDlg != NULL)
{
pDlg->SetTitle(pExpresie->GetExpressType(),strName);
}
pHxTreeCtrl->AddItem(strName,pValue,m_pExternExpression);
if( pDlg->IsType(CDlgFormulaEdit::NewExp) )
{
pDlg->m_strOldName = strName;
pExpresie->AddStyle(HS_EXP_USEREDIT);
pDlg->SetType(CDlgFormulaEdit::Update | pDlg->IsType(CDlgFormulaEdit::SpeedNew));
}
}
}
}
// 更新绘图窗口
ExpPropery NameProp;
NameProp.m_dExpType = pExpresie->GetExpressType();
NameProp.m_strName.Format("%s", pExpresie->GetName());
NameProp.m_strDescribe.Format("%s", pExpresie->GetDescribe());
NameProp.m_bStyle = pExpresie->GetStyle();
if ( g_pFormulaMan )
g_pFormulaMan->SendLinkMsg(DiagramMsg_FormulaParamChanged,(LPARAM)&NameProp);
if(pPromptWnd != NULL)
{
pPromptWnd->SendMessage(HX_USER_COMPILE_INFO,0,0);
//pPromptWnd->SetWindowText(strErroText);
}
m_pParentDlg->ShowResult(CDlgFormulaEdit::CompileResult);
::SendMessage(g_hParentWnd,g_SendReLoadTabItemMsg,0,0); //qinhn 20090721 Add 重新载入T指标ab页,防止点修改公式对话框里面的"保存"后出错
return (long)pExpresie;
}
else
{
/*strErroText = "公式有几个错误!";
if(pBtError != NULL)
{
pBtError->EnableWindow(TRUE);
}
if(pPromptWnd != NULL)
{
pPromptWnd->SetWindowText(strErroText);
}*/
//AddCompileInfotoList(11,(LPARAM)&info);
m_pParentDlg->ShowResult(CDlgFormulaEdit::CompileResult);
delete pExpresie;
}
return 0;
}