Important alert: (current site time 7/16/2013 5:49:49 AM EDT)
 

VB icon

A Better version of the show / hide START button

Email
Submitted on: 9/6/2000 5:03:48 PM
By: XsCode 
Level: Beginner
User Rating: By 1 Users
Compatibility: Delphi 5, Delphi 4, Pre Delphi 4
Views: 16792
 
     Niel Corns code for this was ok, but it doesn't hide the button properly, whereas this code does...
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
!**************************************
! Name: A Better version of the show / hideSTART button
! Description:Niel Corns code for this was ok, but it doesn't hide the button properly, whereas this code does...
! By:XsCode
!
!This code is copyrighted and has! limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=223&lngWId=7!for details.!**************************************

procedure HideStart;
Begin
ShowWindow(GetWindow(FindWindow('Shell_traywnd', NiL), 5), 0);
End;
procedure ShowStart;
Begin
ShowWindow(GetWindow(FindWindow('Shell_traywnd', NiL), 5), 9);
End;


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/11/2001 8:49:10 AMStefan Krause

Hehe,
what is new about this? I did that in Win32asm already and it was one of my first programs I made. You could also add functions to disable/enable the button.
Check my site at http://win32asmnewbies.cjb.net
(If this comment was disrespectful, please report it.)

 
11/7/2001 4:48:47 AMHaadeS

OKOK, it so cool... BUT It's only hide the Start Button, not hide the Start Menu, therefore when I press Ctrl+Esc the Start Menu comeing :(((

Anybody can halp me to hide the Start Menu ????

(so I only try it under WinNT, maybe it works under Win9x)

HaadeS
(varia@norg.hu)
(If this comment was disrespectful, please report it.)

 
4/16/2002 5:03:41 PMReggie Davis

All you have to do is disable the low level keys man... here ya go

Dim syssend As Long
syssend& = SystemParametersInfo2(SPI_SCREENSAVERRUNNING, True, False, 0)

that disables ctrl, alt, del, and esc
(If this comment was disrespectful, please report it.)

 
4/21/2003 7:39:21 AMSebastian Flemig

Hi.

Uhm, I don't get your code working in Delphi @Reggie Davis . Could you rewrite it for Delphi 6, please?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.