精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
i am using CFlowchartEditor in a dialog app,我在一个对话框应用程序使用CFlowchartEditor,
m_editor.Create( WS_CHILD | WS_VISIBLE , CRect(0,0,400,400), this );
but it don't show,How to do this right?但它不显示,该怎么办?
please if anybody have idea then relpy me如果有人有想法请答复我
You'll find an example of the CDiagramEditor in a dialog here[^]你会发现在一个对话框的一个示例CDiagramEditor(^)
Thank you for reply.谢谢你的答复
but CDiagramEditor have no "CreateLink" method.i try to copy CreateLink from CFlowchartEditor ,it doesn't work,how can i use CFlowchartEditor in a dialog?
但CDiagramEditor没有“创建”的方法。我试着从CFlowchartEditor复制创建,它不工作,我怎么能在一个对话框中使用CFlowchartEditor ?
CFlowchartEntityContainer* objs = dynamic_cast< CFlowchartEntityContainer * >(m_editor.GetDiagramEntityContainer());
if( objs->CreateLink(obj2, obj3, _T( "" ) ) )
{
RedrawWindow();
}
I didn't mean you should use the CDiagramEditor instead of the flowchart editor, the flowchart editor is derived from CDiagramEditor, and you should add it to a dialog the same way that the CDiagramEditor is added to a dialog in the example code of the other article.
我不是那个意思,你应该使用CDiagramEditor而不是流程编辑器,流程图编辑从CDiagramEditor衍生,你应该把它添加到对话框中的同样的方式,CDiagramEditor被添加到一个对话框,在其他的示例代码 文章。
why it also throws exception "Runtime Error! This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.",为什么它还抛出异常“运行时错误!此应用程序已请求运行时终止它在一个不寻常的方式。请联系应用程序的支持团队获得更多信息。”
whatever use mdi or sdi? but run your demo it is no problem,what is the reason?无论使用mdi或sdi都可以吗?但运行演示它没有问题,原因是什么?
thank you , This problem has been resolved
谢谢你,这个问题已经解决