SetWindowRgn 后 hRgn句柄无效

QQ286251099 2011-05-16 12:25:55
同志们看下是不是啊
SetWindowRgn(MainForm.Handle,MainFormRegion, True);
GetRegionData(MainFormRegion, SizeOf(TRgnData), nil); //得到大小
RaiseLastOSError;System Error. Code: 6.句柄无效。'
...全文
90 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
QQ286251099 2011-05-16
  • 打赏
  • 举报
回复
Google 翻译
经过成功的呼叫SetWindowRgn,该系统拥有该区域处理hRgn指定的区域。该系统不会使该区域的一个副本。因此,你不应该再有任何的函数调用与这个地区的处理。特别是,不要删除这个地区处理。该系统将删除该区域处理时不再需要。

看来hRgn是不能用了
浩南_哥 2011-05-16
  • 打赏
  • 举报
回复
软件翻译的:
系统不会复制一份该地区。因此,就不要做任何进一步的函数调用和这一地区的句柄。特别是,不可删除这一地区的句柄。删除该地区的系统处理当它不再需要。
浩南_哥 2011-05-16
  • 打赏
  • 举报
回复
重贴下MSDN:
After a successful call to SetWindowRgn, the system owns the region specified by the region handle hRgn. The system does not make a copy of the region. Thus, you should not make any further function calls with this region handle. In particular, do not delete this region handle. The system deletes the region handle when it no longer needed.
QQ286251099 2011-05-16
  • 打赏
  • 举报
回复
老大翻译下。
浩南_哥 2011-05-16
  • 打赏
  • 举报
回复

After a successful call to SetWindowRgn, the system owns the region specified by the region handle hRgn. The system does not make a copy of the region. Thus, you should not make any further function calls with this region handle

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧