Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide Start Button 3

Status
Not open for further replies.

ahhchu

Programmer
Sep 19, 2001
38
US
I have seen procs to disable and enable the Start button. Ids there a simple call to hide the Start button. I have users that need to be controlled :)

Thanks !
 


procedure HideStart(visible: boolean);
var TaskbarHandle, ButtonHandle : HWND;
begin
TaskbarHandle := FindWindow('Shell_TrayWnd',nil);
ButtonHandle := GetWindow(taskbarhandle,GW_CHILD);
if visible = true then
ShowWindow(buttonhandle,SW_RESTORE) //show button
else
ShowWindow(buttonhandle,SW_HIDE); //hide button
end;

Regards S. van Els
SAvanEls@cq-link.sr
 
Thanks for the help I really appreciate it !!!

ahhchu!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top