以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 高级功能研发区 (http://www.weistock.com/bbs/list.asp?boardid=5) ---- ReportNotify事件接收和处理 (http://www.weistock.com/bbs/dispbbs.asp?boardid=5&id=77719) |
-- 作者:yu_xm -- 发布时间:2015/4/17 16:16:19 -- ReportNotify事件接收和处理 C++ AddinDemo.rar 里面的AddinInterface.h //注册品种到数据通知,例如RegReportNotify("CL05",\'MN\');将合约注册到数据通知,当CL05有最新数据到达时触发ReportNotify事件。 virtual BOOL RegReportNotify(char * szLabel, WORD wMarket) = 0; 例子代码里面没有ReportNotify事件处理,请问当ReportNotify事件触发时,回调用哪个函数,请帮忙给一个例子,谢谢。
|
-- 作者:王锋 -- 发布时间:2015/4/17 16:44:51 -- //接收通知消息
|
-- 作者:yu_xm -- 发布时间:2015/4/17 16:52:34 -- 感觉更像这个 void CMainWindowDlg::ReportUpdate(LPARAM l) {
REPORT_STRUCT * pData = (REPORT_STRUCT*)l;
//显示处理报表 pData->m_fNewPrice ....
CString strText;
strText.Format("注册品种: %s 最新价 %.2f", pData->m_szName, pData->m_fNewPrice);
GetDlgItem(IDC_STATIC_TEXT)->SetWindowText(strText); } 晚上回去试一下
|