Delphi 打开/关闭/判断Aero效果
来源:互联网 发布:成都市场不需要php了么 编辑:程序博客网 时间:2024/06/05 17:35
function OpenAero():Boolean;const DWM_EC_ENABLECOMPOSITION = 1;var h:HWND; DwmEnableComposition:function(uCompositionAction:Cardinal):THandle; stdcall;begin Result:=False; h:=LoadLibrary('dwmapi.dll'); if h <> 0 then begin @DwmEnableComposition:=GetProcAddress(h,'DwmEnableComposition'); if @DwmEnableComposition <> nil then begin if DwmEnableComposition(DWM_EC_ENABLECOMPOSITION) = 0 then begin Result:=True; end; end; end;end;function CloseAero():Boolean;const DWM_EC_DISABLECOMPOSITION = 0;var h:HWND; DwmEnableComposition:function(uCompositionAction:Cardinal):THandle; stdcall;begin Result:=False; h:=LoadLibrary('dwmapi.dll'); if h <> 0 then begin @DwmEnableComposition:=GetProcAddress(h,'DwmEnableComposition'); if @DwmEnableComposition <> nil then begin if DwmEnableComposition(DWM_EC_DISABLECOMPOSITION) = 0 then begin Result:=True; end; end; end;end;function IsOpenAero():Boolean;var h:HWND; b:Boolean; DwmIsCompositionEnabled:function(var retbool:Boolean):THandle; stdcall;begin Result:=False; h:=LoadLibrary('dwmapi.dll'); if h <> 0 then begin @DwmIsCompositionEnabled:=GetProcAddress(h,'DwmIsCompositionEnabled'); if @DwmIsCompositionEnabled <> nil then begin DwmIsCompositionEnabled(b); if b then begin Result:=True; end; end; end;end;procedure TForm1.Button3Click(Sender: TObject);begin if IsOpenAero() then begin ShowMessage('开启了Aero'); end else begin ShowMessage('未开启Aero'); end;end;procedure TForm1.Button2Click(Sender: TObject);begin CloseAero();end;procedure TForm1.Button1Click(Sender: TObject);begin OpenAero();end;
0 0
- Delphi 打开/关闭/判断Aero效果
- 打开windows Aero的效果
- 关闭win7 透明化效果 aero
- Aero效果
- WIN7下使用DotNetBar,关闭Aero效果,使用Office2007Form皮肤
- 关闭Windows7旗舰版中的Aero Shake功能提升速度效果
- WIN7 如何关闭Aero
- Delphi Ole操作Word,判断是否有打开的文档,并且给关闭
- 动画效果打开关闭层
- Delphi窗体GlassFrame实现在win7下的Aero Glass效果
- 【jiasuba】打开Aero效果为你带来精彩 win7中这样操作
- Delphi实现打开和关闭光驱
- Delphi控件RzSizePanel的打开与关闭
- 判断蓝牙打开关闭状态+wifi打开关闭状态
- C# 窗体制作Aero效果
- 关于AERO glass效果 DwmEnableComposition
- 动画效果 打开层/关闭层:
- 动画效果打开层 关闭层
- 房贷首付购房
- C++基于矢量图形库cairo绘图图形
- java适配器设计模式源码示例
- 各种计算机类的经典书籍大全(转)
- oracle job失败次数达到16次的解决办法
- Delphi 打开/关闭/判断Aero效果
- 机器学习手记[4]--Apriori关联准则挖掘方法
- Android清理缓存功能实现
- hhh
- 1.关于UltraEdit中的FTP和Tenent配置,UE远程连接Linux进行文件操作
- 《javascript DOM 编程艺术》学习笔记(一)——JS的发展与基本概念
- bgb
- mysql下面c连接mysql数据库
- Bulk synchronous parallel (BSP) Model 整体同步并行计算模型