文件名称:window_Cwnd
- 所属分类:
- 对话框与窗口
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 25.73kb
- 下载次数:
- 0次
- 提 供 者:
- zhan****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现窗口透明
只需在创建窗口函数中加入
SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,
GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000)
HINSTANCE hInst = LoadLibrary(\"User32.DLL\")
if(hInst)
{
typedef BOOL (WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD)
MYFUNC fun = NULL
//取得SetLayeredWindowAttributes函数指针
fun=(MYFUNC)GetProcAddress(hInst, \"SetLayeredWindowAttributes\")
if(fun)fun(this->GetSafeHwnd(),0,200,2)
FreeLibrary(hInst)
}
只需在创建窗口函数中加入
SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,
GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000)
HINSTANCE hInst = LoadLibrary(\"User32.DLL\")
if(hInst)
{
typedef BOOL (WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD)
MYFUNC fun = NULL
//取得SetLayeredWindowAttributes函数指针
fun=(MYFUNC)GetProcAddress(hInst, \"SetLayeredWindowAttributes\")
if(fun)fun(this->GetSafeHwnd(),0,200,2)
FreeLibrary(hInst)
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 51622442window_cwnd.rar 列表 window_Cwnd\PartTransparent.aps window_Cwnd\PartTransparent.clw window_Cwnd\PartTransparent.cpp window_Cwnd\PartTransparent.dsp window_Cwnd\PartTransparent.dsw window_Cwnd\PartTransparent.h window_Cwnd\PartTransparent.ncb window_Cwnd\PartTransparent.opt window_Cwnd\PartTransparent.plg window_Cwnd\PartTransparent.rc window_Cwnd\PartTransparentDlg.cpp window_Cwnd\PartTransparentDlg.h window_Cwnd\ReadMe.txt window_Cwnd\RES\PartTransparent.ico window_Cwnd\RES\PartTransparent.rc2 window_Cwnd\Resource.h window_Cwnd\StdAfx.cpp window_Cwnd\StdAfx.h window_Cwnd\Release window_Cwnd\RES window_Cwnd