标题:GetWindowRect与GetClientRect有什么区别?
取消只看楼主
clovecbgad
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-3-28
 问题点数:0 回复次数:0 
GetWindowRect与GetClientRect有什么区别?

GetWindowRect与GetClientRect有什么区别?他们是怎么定义的?

为什么我在对话框中设置分割线用:

GetDlgItem(IDC_SEPARATOR)->GetWindowRect(&rectSeparator);可以

而在对话框中设置文本框却要用:

CRect rect;

GetDlgItem(IDC_SAMPLE)->GetWindowRect(&rect);

ScreenToClient(&rect);

这2者有什么区别吗?

希望知道原因的高手帮助我解答

搜索更多相关主题的帖子: 分割线 对话框 文本框 
2006-07-10 14:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-77545-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.229261 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved