怎样屏蔽掉开始按钮? (转)[@more@]procedure TForm1.Button1Click(Sender: T
object);
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键还是可以弹出开始菜单的。
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键还是可以弹出开始菜单的。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10790663/viewspace-971090/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10790663/viewspace-971090/