分类:
2008-10-13 17:21:31
..............................................................................
主题:What is the "wrapper" and "extra data." mean?原文: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指针,如下:
Btw,把CWnd指针转换成一个控件ID,可以用MFC库中CWnd:GetDlgCtrlID函数。
CEdit* pBoxOne;
pBoxOne = (CEdit*) GetDlgItem(IDC_EDIT1);
GotoDlgCtrl(pBoxOne);
..............................................................................
主题: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:完成键,完成键可用来给套接字传递一些背景信息。