-
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
-
时钟程序,入门者可以了解setTimer和KillTimer的用法
时钟程序,入门者可以了解setTimer和KillTimer的用法-Clock procedures, entry will be able to know the usage of setTimer and KillTimer
- 2022-07-01 15:25:34下载
- 积分:1
-
该原理是产生波形的文件,文件类型是ASM文件,欢迎下载!
该原理是产生波形的文件,文件类型是ASM文件,欢迎下载!-The principle is the waveform file, the file type is the ASM file, welcome to download!
- 2023-02-18 13:55:04下载
- 积分:1
-
将十六进制数据转换为数据
Convert hex data to bin data
- 2022-02-04 08:26:38下载
- 积分:1
-
VC 6.0下可通过
C++版的学籍管理系统
VC 6.0下可通过
C++版的学籍管理系统-VC 6.0 through C version of the Maintenance Management System
- 2022-01-26 00:58:33下载
- 积分:1
-
有很多VC SOCKET编程的例程,欢迎下载
有很多VC SOCKET编程的例程,欢迎下载-There are many VC SOCKET programming routines, welcome to download
- 2022-08-17 19:28:28下载
- 积分:1
-
Visual Basic 小程序来数据库打印
Visual Basic 小程序来数据库打印-Visual Basic program to a database of small print
- 2022-05-20 01:30:52下载
- 积分:1
-
VC6.0关于多线程编程的程序,主要包括多线程中的线程创建,线程同步等知识...
VC6.0关于多线程编程的程序,主要包括多线程中的线程创建,线程同步等知识-VC6.0 on multithreaded programming procedures, including multithreading of thread creation, thread synchronization knowledge
- 2022-08-16 02:39:32下载
- 积分:1
-
该代码是在Turbo c中实现了一个界面化的娱乐小程序,包含了日历、时钟、贪食蛇游戏...
该代码是在Turbo c中实现了一个界面化的娱乐小程序,包含了日历、时钟、贪食蛇游戏-the code is in Turbo c fulfill the interface of a small entertainment procedures, including a calendar, clock, Tanshichi games and so on. .
- 2022-10-02 09:20:03下载
- 积分:1
-
一个经典的direct程序。用C++编写类来包装Direct API。想成为高手必看!...
一个经典的direct程序。用C++编写类来包装Direct API。想成为高手必看!-A classical program about direct.It encapsulates direct API with C++ class,it is helpful for you!
- 2022-01-20 23:30:46下载
- 积分:1