乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 58|回复: 5

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

[复制链接]

2

主题

8

帖子

1

银币

初来乍到

Rank: 1

铜币
16
发表于 2005-12-17 17:00:00 | 显示全部楼层 |阅读模式
创建mfc对话框,点击按钮执行比如insert()这个函数,实现将另外一张dwg图插入到当前dwg图中。疑惑在于,只有在点击对话框确定或者取消按钮以后,才能将插入的图在当前dwg文件中显示出来;如果对话框存在,就无法显示插入的图形。
请问这个是什么原因造成的?有没有办法让插入的图形立即显示出来,而不必等到对话框结束呢?
谢谢!
回复

使用道具 举报

2

主题

8

帖子

1

银币

初来乍到

Rank: 1

铜币
16
发表于 2005-12-17 19:56:00 | 显示全部楼层
补充一下 我使用的对话框是模态的
回复

使用道具 举报

124

主题

837

帖子

9

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1333
发表于 2005-12-17 21:17:00 | 显示全部楼层
Zoom e 一下,看不到么?
回复

使用道具 举报

2

主题

8

帖子

1

银币

初来乍到

Rank: 1

铜币
16
发表于 2005-12-18 21:02:00 | 显示全部楼层
to 王咣生
在模态对话框没有析构之前,zoom e的命令无法键入……
回复

使用道具 举报

46

主题

261

帖子

8

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
445
发表于 2005-12-19 22:38:00 | 显示全部楼层
// 刷新屏幕
actrTransactionManager->flushGraphics();
acedUpdateDisplay();
回复

使用道具 举报

2

主题

8

帖子

1

银币

初来乍到

Rank: 1

铜币
16
发表于 2005-12-21 21:14:00 | 显示全部楼层

非常感谢,已经实现了所需要的效果。
下面是从ObjectARX Reference上抄下来的说明:
virtual void
flushGraphics() = 0;
Flushes the graphics queue to the display.
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.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-2-5 14:43 , Processed in 0.195036 second(s), 64 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表