摘要: 剪切区域也是区域的一种, 窗口在重绘时只会重绘剪切区域中的内容. SelectClipRgn 和 ExtSelectClipRgn 是通过指定区域来定义剪切区域; SelectClipPath 是通过指定路径来定义剪切区域; ExtSelectClipRgn 和 SelectClipPath 比 SelectClipRgn 多出一个与原剪切区域混合方式的参数: RGN_AND = 1; RGN... 阅读全文
posted @ 2008-05-29 17:56 万一 阅读(7400) 评论(0) 推荐(0)
摘要: 问题来源: http://www.cnblogs.com/del/archive/2008/05/29/1005631.html#1212654 首先, 这个问题到 Delphi 2008 时, 可能就不存在了, 因为那时的 TStrings 肯定支持 UniCode; 当前版本是 2007. unit Unit1; interface uses Windows, Messages, ... 阅读全文
posted @ 2008-05-29 13:18 万一 阅读(4857) 评论(12) 推荐(0)
摘要: 其中 GetClientRect、ClientRect 获取的是窗口的客户区矩形; GetWindowRect、BoundsRect 是获取窗口矩形; 另外, 还有一个 Windows.GetClientRect(使用方法同 GetWindowRect, 它们都是 API 函数), 这里使用的 GetClientRect 是 Forms.GetClientRect. 本例效果图: unit... 阅读全文
posted @ 2008-05-29 12:31 万一 阅读(18897) 评论(0) 推荐(0)