如何在Windows Vista及更高版本上进入Windows Flip 3D模式?
发布时间:2021-05-22 20:54:19  所属栏目:Windows  来源:网络整理 
            导读:可以通过编程方式在 Windows Vista以上的系统上触发 Flip 3D mode 吗? 它与您手动按CTRL WIN TAB一样 Shell 对象具有可以调用此模式的 WindowSwitcher 方法. 这里是Delphi的代码示例: uses ComObj;procedure EnterWindowSwitcherMode;var Shell: OleVari
                
                
                
            | 
 可以通过编程方式在 
 Windows Vista以上的系统上触发 
  它与您手动按CTRL WIN TAB一样 Shell对象具有可以调用此模式的WindowSwitcher方法.这里是Delphi的代码示例: uses
  ComObj;
procedure EnterWindowSwitcherMode;
var
  Shell: OleVariant;
begin
  try
    Shell := CreateOleObject('Shell.Application');
    Shell.WindowSwitcher;
  finally
    Shell := Unassigned;
  end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
  if Win32MajorVersion >= 6 then // are we at least on Windows Vista ?
  begin
    try
      EnterWindowSwitcherMode;
    except
      on E: Exception do
        ShowMessage(E.ClassName + ': ' + E.Message);
    end;
  end;
end;更新: 或者在这里提到的Norbert Willhelm,还有 以下代码需要Shell32_TLB.pas单元,您可以在Delphi中创建这样的方式(请注意,您必须至少具有第一次使用 >转到菜单Component / Import Component 和代码: uses
  Shell32_TLB;
procedure EnterWindowSwitcherMode;
var
  // on Windows Vista and Windows 7 (at this time :)
  // is Shell declared as IShellDispatch5 object interface
  AShell: Shell;
begin
  try
    AShell := CoShell.Create;
    AShell.WindowSwitcher;
  finally
    AShell := nil;
  end;
end;(编辑:锡盟站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! | 
站长推荐
            
        
