打印本文 打印本文 关闭窗口 关闭窗口
怎样屏蔽掉开始按钮?
作者:武汉SEO闵涛  文章来源:敏韬网  点击数595  更新时间:2009/4/23 18:41:00  文章录入:mintao  责任编辑:mintao
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键还是可以弹出开始菜单的。

打印本文 打印本文 关闭窗口 关闭窗口