PtInRect 失效的解决
来源:互联网 发布:java中md5 32 编辑:程序博客网 时间:2024/04/29 15:52
PtInRect 中出现错误,当rect中出现负值,就罢工了。
看了一下msdn
PtInRect
Note
The rectangle must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangle before calling this function.
The rectangle is normalized for fourth-quadrant positioning, which Windows typically uses for coordinates. NormalizeRect compares the top and bottom values, and swaps them if the top is greater than the bottom. Similarly, it swaps the left and right values if the left is greater than the right. This function is useful when dealing with different mapping modes and inverted rectangles.
如上分析,NormalizeRect就是把数据进行规整化。
调用这个函数后,PtInRect 就可以正常工作了
- PtInRect 失效的解决
- PtInRect 的详细范围
- PtInRect
- 判断一个点是否在矩形内PtInRegion-解决PtInRect不能正确判断不同形式TRent的情况
- eclipse alt+/ 失效的解决
- IIS6,SESSION失效的解决
- 解决session失效的问题
- trigger('click') 失效的解决
- 解决overridePendingTransition失效的问题
- 解决ImageView的selector失效
- PtInRect方法
- Qt的mysql驱动失效的解决
- iframe中的session失效问题的解决
- 如何解决cookie失效的方法?
- AWAY3D4beta版本drag3d失效问题的解决。
- 解决AWAY3D的SegmentSet失效问题
- 解决viewfipper滑动失效的问题
- IE onclick事件失效的解决
- 新IT人
- 忍不住,终于在csdn上开博了!
- div底部对齐
- 网站开发的一些见解
- MyEclipse的安装(适用于7.0以前的版本!)
- PtInRect 失效的解决
- 在VMware下面装RHEL5.3
- c++中调用c接口的问题
- 上大数学系博士点考试书目
- sqlexplorer插件的安装(适用于MyEclipse7.0以前的版本)
- Apache derby数据库在MyEclipse7.1中启动失败的解决方案
- 快速排序算法(qsort)
- java基础
- 【转】关于邦迪(J.A. Bondy)的图论教材