CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

求翻译MSDN里的一段话!

楼主jyq686(四空)2004-09-04 11:27:01 在 VC/MFC / 基础类 提问

是对OnPrePareDC函数的描述:  
  The   default   implementation   of   this   function   does   nothing   if   the   function   is   called   for   screen   display.   However,   this   function   is   overridden   in   derived   classes,   such   as   CScrollView,   to   adjust   attributes   of   the   device   context;   consequently,   you   should   always   call   the   base   class   implementation   at   the   beginning   of   your   override.    
   
  If   the   function   is   called   for   printing,   the   default   implementation   examines   the   page   information   stored   in   the   pInfo   parameter.   If   the   length   of   the   document   has   not   been   specified,   OnPrepareDC   assumes   the   document   to   be   one   page   long   and   stops   the   print   loop   after   one   page   has   been   printed.   The   function   stops   the   print   loop   by   setting   the   m_bContinuePrinting   member   of   the   structure   to   FALSE.  
  谢谢!!!! 问题点数:10、回复次数:5Top

1 楼baoyuhua(榕树)回复于 2004-09-04 13:24:16 得分 2

如果你不是在ondraw()函数中使用dc绘图的话,那么在其他地方使用时,在获得dc后一定要先调用这个函数,这样mfc可以在视图发生滚动后为你绘制的象素点坐标作转换,使其可以根基滚动位置作变换Top

2 楼summer6074(验尸官)回复于 2004-09-04 13:24:52 得分 8

先翻译一段,报了到再来第2段  
              当这个函数被调用进行屏幕显示时,这个函数的默认实现是什么都不做的.然而,这个函数一般在派生类中进行重载以用来调节设备环境的属性,cscrollview就是一例.因此,每次在你使用派生中这个函数的重载函数时,你都要首先调用这个函数的基类的实现.  
  Top

3 楼summer6074(验尸官)回复于 2004-09-04 13:33:29 得分 0

如果这个函数是用来做打印的话,它的默认实现版本会检查在pInfo这个参数中的保存的页面信息.如果打印文本的长度没有被标识,onpreparedc   就会默认它只有一页从而在打印完一页后旧会停下来(终止打印循环).而它终止循环的是通过设定结构体中成员m_bContinuePrinting   为false而达到这个目的的.Top

4 楼summer6074(验尸官)回复于 2004-09-04 13:34:01 得分 0

收工  
  Top

5 楼jyq686(四空)回复于 2004-09-05 09:25:12 得分 0

TO:   summer6074(验尸官)    
   
  感谢到非常!!!还有   baoyuhua(游侠)Top

相关问题

  • 翻译一段话
  • 请翻译一段话。
  • 这段话怎么翻译
  • 高手帮忙翻译翻译:Additional Information 这段话??
  • 谁帮我翻译一下这段话
  • 请问msdn中这几句话怎么翻译为好
  • 英文差,MSDN中的下面这句话怎么翻译?
  • 请英语高手帮我翻译一下这段话,谢谢!
  • 请英语高手帮我翻译一下这段话
  • 翻译一段话(有关虚拟多重继承)

关键词

  • 函数
  • dc
  • document
  • onpreparedc
  • 话
  • default implementation
  • 使用
  • called
  • print
  • one page

得分解答快速导航

  • 帖主:jyq686
  • baoyuhua
  • summer6074

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo