设置窗口透明化(VC)
来源:互联网 发布:网络推广的各种渠道 编辑:程序博客网 时间:2024/06/10 16:05
BOOL CTest::OnInitDialog()
{
CDialog::OnInitDialog();
//设置窗口扩展风格
SetWindowLong(GetSafeHwnd(),GWL_EXSTYLE,GetWindowLong(GetSafeHwnd(),GWL_EXSTYLE)|0x80000);
typedef BOOL (WINAPI *FSetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD);
FSetLayeredWindowAttributes SetLayeredWindowAttributes ;
HINSTANCE hInst = LoadLibrary("User32.DLL");
SetLayeredWindowAttributes = (FSetLayeredWindowAttributes)GetProcAddress(hInst,"SetLayeredWindowAttributes");
if (SetLayeredWindowAttributes)
SetLayeredWindowAttributes(GetSafeHwnd(),RGB(0,0,0),238,2);
FreeLibrary(hInst);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
- 设置窗口透明化(VC)
- VC设置窗口透明
- VC设置窗口透明
- VC 窗口透明化
- vc 窗口透明
- VC窗口透明
- VC 窗口透明
- VC实现透明窗口
- VC窗口透明
- 设置MFC窗口透明
- 设置MFC窗口透明
- MFC设置窗口透明
- 设置窗口背景透明
- QT窗口透明设置
- QT窗口透明设置
- 设置Android窗口透明
- MFC设置透明窗口
- 设置窗口透明
- 如何阅读他人代码(三)
- 改变鼠标图标(VC)
- 如何阅读他人代码(四)
- 如何阅读他人代码(五)
- 人生就像荡秋千
- 设置窗口透明化(VC)
- 如何阅读他人代码(六)
- test
- 夜,未眠~
- 轻量级的ComponentArt
- 第一次来
- 对与错、是与非、成与败、得与失
- Qt多线程-转载
- 天梭 TISSOT