Fórum Veja aqui como bloqear o Botão Iniciar do Win XP #211517
04/02/2004
0
O problema é que ele só será restaurado quando reiniciar o windows, (Se alguém descobrir como resolver esta falha me avise, sim...)
#Rotina
PostMessage(FindWindowEx(FindWindow(´Shell_TrayWnd´,nil),0,´Button´,nil),WM _CLOSE,0,0);
Aurino003
Curtir tópico
+ 0Posts
04/02/2004
Otto
Amigo,
nao uso o winxp, mas, procuro tb por essa rotina. Funfo blz... mas, ja tentou trocar o wm_close por wm_hide pra ver se funciona?! e pra voltar ao normal da um show... será que pega?!
Gostei + 0
04/02/2004
Fabio.hc
var
Form1: TForm1;
taskbarhandle,
buttonhandle : HWND;
procedure TForm1.EsconderClick(Sender: TObject);
begin
taskbarhandle := FindWindow(´Shell_TrayWnd´, nil);
buttonhandle := GetWindow(taskbarhandle, GW_CHILD);
ShowWindow(buttonhandle, SW_HIDE); {esconde o botão}
end;
procedure TForm1.MostarClick(Sender: TObject);
begin
taskbarhandle := FindWindow(´Shell_TrayWnd´, nil);
buttonhandle := GetWindow(taskbarhandle, GW_CHILD);
ShowWindow(buttonhandle, SW_RESTORE) {mostra o botão}
end;Gostei + 0
04/02/2004
Ltres
var
Form1: TForm1;
taskbarhandle,
buttonhandle : HWND;
procedure TForm1.EsconderClick(Sender: TObject);
begin
taskbarhandle := FindWindow(´Shell_TrayWnd´, nil);
buttonhandle := GetWindow(taskbarhandle, GW_CHILD);
ShowWindow(buttonhandle, SW_HIDE); {esconde o botão}
end;
procedure TForm1.MostarClick(Sender: TObject);
begin
taskbarhandle := FindWindow(´Shell_TrayWnd´, nil);
buttonhandle := GetWindow(taskbarhandle, GW_CHILD);
ShowWindow(buttonhandle, SW_RESTORE) {mostra o botão}
end;Perfeito :shock: Simplesmete perfeito!
Gostei + 0
08/03/2004
Poeta Noturno
EnableWindow(FindWindowEx(FindWindow(´Shell_TrayWnd´, nil), 0, ´Button´, nil), false);
Para habilitar novamente, é só colocar true no lugar de false
Um abraço
Poeta Noturno
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)