指针的用法
来源:互联网 发布:私人飞机知乎 编辑:程序博客网 时间:2024/06/05 22:58
DWORD dwStyle;
RECT rect;
SetRectEmpty(lprc);
dwStyle = GetWindowLongPtr(psb->hwnd, GWL_STYLE);
if( (dwStyle & WS_HSCROLL) && (dwStyle & WS_VSCROLL) ) {
GetClientRect(psb->hwnd, &rect);
ClientToScreen(psb->hwnd, (LPPOINT)&rect);
RECT rect;
SetRectEmpty(lprc);
dwStyle = GetWindowLongPtr(psb->hwnd, GWL_STYLE);
if( (dwStyle & WS_HSCROLL) && (dwStyle & WS_VSCROLL) ) {
GetClientRect(psb->hwnd, &rect);
ClientToScreen(psb->hwnd, (LPPOINT)&rect);
ClientToScreen(psb->hwnd, ((LPPOINT)&rect)+1);
最后这两个 客户端 坐标转化为 屏幕坐标
和 ClientToScreen(psb->hwnd, &rect);是一样的 。
((LPPOINT)&rect)+1 是(right,bottom),也就是右下角点转换的。
- 指针的指针的用法
- 指针的指针用法理解
- 指针的用法
- 双重指针的用法
- 指针的用法
- 函数指针的用法
- this指针的用法
- 函数指针的用法
- 函数指针的用法
- 函数指针的用法
- 智能指针的用法
- 二级指针的用法
- this指针的用法
- 函数指针的用法
- 函数指针的用法
- 二级指针的用法
- 函数指针的用法
- 指针的常见用法
- 关于工作中遇到的ORACLE机构层级关系的递归查询处理
- objective c实现配置文件+反射 工厂创建
- [转]常用的python模块及安装方法
- android获取控件坐标
- 时间工具类
- 指针的用法
- Installation and Configuration MySQL Cluster 7.2 on CentOS 5 (include MySQL 5.5)
- Tomcat 6.x 下配置虚拟目录
- 游标基本结构及属性(cursor)
- zb的生日
- 如何检测aix 服务器上 某一个定制的端口是可用的
- Android——界面特效 相关知识总结贴
- gpedit.msc(组策略)报错{8FC0B734-A0E1-11D1-A7D3-0000F87571E3}解决方法
- 黑马程序员——集合