Chinaunix首页 | 论坛 | 博客
  • 博客访问: 455107
  • 博文数量: 724
  • 博客积分: 40000
  • 博客等级: 大将
  • 技术积分: 5010
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-13 14:47
文章分类

全部博文(724)

文章存档

2011年(1)

2008年(723)

我的朋友

分类:

2008-10-13 17:21:31

编者按——


  本站论坛的技术英语板块已经推出一年多了,这一年大家一起在技术应用、英语学习上互相提携、共同进步。 只是有一件小事总让我觉得如鲠在喉:有的朋友提了问题不结贴,不知为什么?即便是有了回贴,也不结贴给分,其实如果你觉得回帖没有讲得很清楚、很正确,你也应该给出自己的看法,不了了之即对别人不负责任也对自己不负责任,这样讲不是说为了那点分数,而是我觉得应养成良好的习惯,否则版主很生气,后果很严重,:)

..............................................................................

主题:What is the "wrapper" and "extra data." mean?
作者:shuishi32 ( 书童 )
回复次数: 4
发表时间: 2005-10-14 18:57:48

原文:pEdit = (CEdit*)GetDlgItem(ID_FOO);

even though GetDlgItem returns a pointer to a CWnd, not a CEdit: because CEdit is also a pure wrapper class, with no extra data or virtual functions beyond what it inherits from CWnd.




译文:虽然GetDlgItem返回了一个CWnd指针,但不是CEdit的,因为,CEdit也是一个纯粹的包装类,除了从CWnd继承来的,并无额外数据或虚函数。

辨析:wrapper class:包装类,extra data:额外的数据。在MFC库中,

CWnd:GetDlgItem函数是用来将控件ID转换成一个CWnd指针,如下:

   
CEdit* pBoxOne;
pBoxOne = (CEdit*) GetDlgItem(IDC_EDIT1);
GotoDlgCtrl(pBoxOne);
Btw,把CWnd指针转换成一个控件ID,可以用MFC库中CWnd:GetDlgCtrlID函数。


..............................................................................

主题:1)what is the difference between "floating window" and "docking window"?
2)MSDN里的一句,帮我一下!谢谢。

作者:1)ri_aje (书童) 2)CoDavid (书童)
回复次数: 1)3 2)1
发表时间: 1)2005-9-25 23:09:44  2)2005-11-5 22:52:08

原文:1)如题
2)If hwndParent identifies a child window, the system assigns ownership to the top-level parent window of the child window.

译文:1)漂浮窗口和停靠窗口有什么不同?

2)如果hwndParent确定了一个子窗体,系统分配所有权给该子窗体的最高级父窗体。

辨析:1)zyq654321给出的解释:1、 A docked window is attached to the side of the application window.请参考。2、Floating windows can exist outside the application area.
2)hwndParent参数就是父窗口或一个窗口所有者的句柄值。



.............................................................................

主题:这句话这样译可以吗?
作者: eason_keen (书童)
回复次数: 2
发表时间: 2005-11-7 21:02:44

原文:Note that the third parameter of CreateIoCompletionPort allows a completion key to be specified along with the socket handle to be associated.

译文:要注意的是,CreateIoCompletionPort的第三个参数用来为相关联的套接字句柄指定一个完成键。


辨析:
乍一看这个句子没有上下文理解可能比较困难,其实这个句子是中的一句,msdn中也有。这样理解就不会有什么偏差了。completion key:完成键,完成键可用来给套接字传递一些背景信息。


--------------------next---------------------

阅读(351) | 评论(0) | 转发(0) |
0

上一篇:Figures

下一篇:Fast I/O,...

给主人留下些什么吧!~~