当前位置:编程学习 > Delphi >>

怎样屏蔽掉开始按钮?

procedure TForm1.Button1Click(Sender: TObject);
begin
{Disable the start button}
EnableWindow(FindWindowEx(FindWindow(Shell_TrayWnd, nil),0, Button, nil),false);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
{Enable the start button}
EnableWindow(FindWindowEx(FindWindow(Shell_TrayWnd, nil),0,Button,nil),true);
end;

注意:如果按win键还是可以弹出开始菜单的。
补充:软件开发 , Delphi ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,