+ -
当前位置:首页 → 问答吧 → SetWindowLong为什么能隐藏窗口?

SetWindowLong为什么能隐藏窗口?

时间:2011-12-08

来源:互联网

invoke SetWindowLong,hWnd,-8,1028 
在窗口程序中加入这句话以后 在任务管理器的应用程序列表就看不到了 这是为什么呢
我去windows.h查找了-8的定义是 GWL_HWNDPARENT 关于GWL_HWNDPARENT的解释百度没找到
SetWindowLong函数本身的解释是改变指定窗口的属性.函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
这句话能在应用程序列表中隐藏 是不是应用了 “函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置” 请大家帮忙解释下 谢谢

作者: whatday   发布时间: 2011-12-08

兄弟,这个应该查看微软的MSDN,setwindowLong 是windows api函数它的用法MSDN上介绍的很详细

作者: PointertoPointer   发布时间: 2011-12-09

You must not call SetWindowLong with the GWL_HWNDPARENT index to change the parent of a child window. Instead, use the SetParent function. 


The SetParent function changes the parent window of the specified child window. 



作者: cnfixit   发布时间: 2011-12-09