-
VC毛玻璃
#define GDIPVER 0x0110 //定义高版本的GDI+(1.1)
#include
#include
#include
#include
#include
#pragma comment(lib,"GdiPlus.lib")
using namespace Gdiplus;
#include
#pragma comment(lib,"dwmapi.lib")
//Aero效果是否已启用
BOOL IsCompositionEnabled()
{
BOOL bEnabled,bResult;
bResult = (SUCCEEDED(DwmIsCompositionEnabled(&bEnabled)) && bEnabled);
return bResult;
}
//对已分层的窗口启动玻璃效果
HRESULT EnableBlurBehindWindow(HWND hWnd, //窗口句柄
BOOL bEnable = TRUE, //启用或禁用
HRGN hRgn = 0, //模糊窗体中某个区域
BOOL bTransitionOnMaximized = FALSE) //最大化时是否启用
{
DWM_BLURBEHIND blurBehind = { 0 };
blurBehind.dwFlags = DWM_BB_ENABLE | DWM_BB_TRANSITIONONMAXIMIZED;
blurBehind.fEnable = bEnable;
blurBehind.fTransitionOnMaximized = bTransitionOnMaximized;
if (bEnable && hRgn != NULL)
{
blurBehind.dwFlags |= DWM_BB_BLURREGION;
blurBehind.h
- 2023-05-01 15:10:04下载
- 积分:1
-
Game stone, scissors, fabric source, code, only more than 200 lines, new algorit...
游戏石头、剪子、布的源码,代码只有二百多行,算法新颖-Game stone, scissors, fabric source, code, only more than 200 lines, new algorithm
- 2023-09-08 09:55:03下载
- 积分:1
-
这是一个简单的例PAC
This a simple exemple of pac-men-This is a simple exemple of pac-men
- 2022-01-22 03:48:07下载
- 积分:1
-
applet k-means with java
这是一个小程序,用k-均值算法做了一个小例子,用户可以改变簇的数目,逐步解释,
- 2022-08-19 20:07:41下载
- 积分:1
-
很好用的下载工具
很好用的下载工具-good use download tool
- 2022-04-18 05:56:10下载
- 积分:1
-
MFC控件,树形,像资源管理器一样,实现树形获取文档的功能...
MFC控件,树形,像资源管理器一样,实现树形获取文档的功能-MFC control, tree, like the Explorer, the same access to the document to achieve the function tree
- 2022-03-24 10:42:46下载
- 积分:1
-
电机控制程序
电流滞环比较法源程序,绝对好用,自己运行过得,用的是7.0-Hysteresis current source of comparative law, the absolute ease of use, running their own lives, using a 7.0
- 2022-08-10 14:43:41下载
- 积分:1
-
我自己写的用RIL来收发短信的DEMO,VS05,WINCE
我自己写的用RIL来收发短信的DEMO,VS05,WINCE-I wrote it myself RIL to send and receive message using the DEMO, VS05, WINCE
- 2022-03-24 12:20:06下载
- 积分:1
-
Visual C++ 5.0多媒体编程实例
Visual C++ 5.0多媒体编程实例-Visual C++ 5.0 Multimedia programming examples
- 2023-06-27 09:10:04下载
- 积分:1
-
Browser Helper Object example.
Self explanatory.
Browser Helper Object example.
Self explanatory.-Browser Helper Object example.
Self explanatory.
- 2022-02-14 00:39:24下载
- 积分:1