Miracle 发表于 2005-12-17 17:00:00

[求助]arx中使用mfc对话框的疑惑

<FONT face=宋体 size=2>创建mfc对话框,点击按钮执行比如insert()这个函数,实现将另外一张dwg图插入到当前dwg图中。疑惑在于,只有在点击对话框确定或者取消按钮以后,才能将插入的图在当前dwg文件中显示出来;如果对话框存在,就无法显示插入的图形。<BR>请问这个是什么原因造成的?有没有办法让插入的图形立即显示出来,而不必等到对话框结束呢?<BR>谢谢!</FONT>

Miracle 发表于 2005-12-17 19:56:00

补充一下 <FONT face=宋体 size=2>我使用的对话框是模态的</FONT>

王咣生 发表于 2005-12-17 21:17:00

reply

Zoom e 一下,看不到么?

Miracle 发表于 2005-12-18 21:02:00

<P>to <A name=75216><FONT color=#990000><B>王咣生</B></FONT></A></P>
<P>在模态对话框没有析构之前,zoom e的命令无法键入……</P>

ahlzl 发表于 2005-12-19 22:38:00

// 刷新屏幕<BR>&nbsp;actrTransactionManager-&gt;flushGraphics();<BR>&nbsp;acedUpdateDisplay();

Miracle 发表于 2005-12-21 21:14:00

ahlzl发表于2005-12-19 22:38:00static/image/common/back.gif// 刷新屏幕actrTransactionManager-&gt;flushGraphics();acedUpdateDisplay();


<P><BR>非常感谢,已经实现了所需要的效果。</P>
<P>下面是从ObjectARX Reference上抄下来的说明:</P>
<P class=signature>virtual void</P>
<P class=signature>flushGraphics() = 0;</P>
<P>Flushes the graphics queue to the display.</P>
<P>Normally an entity's graphics are not updated until the entity's changes are committed. In the transaction environment this doesn't occur until the outermost transaction (or, if there are no nested transactions, then the single transaction itself) is ended, so the graphics for all entities in the transactions are not updated until the outermost transaction ends. If a graphics update is desired before the outermost transaction is ended, then the queueForGraphicsFlush() function should be called to queue up all changes made so far followed by a flushGraphics() call to flush all graphics currently queued up out to the display.</P>
页: [1]
查看完整版本: [求助]arx中使用mfc对话框的疑惑