Home   |   Software   |   Practical Jokes   |   Code Corner   |   Workshops


Delphi Secret #12

Getting rid of a form's caption bar
 
 
     If you're one of those constantly seeking to annihilate the caption bar on a form, look no further. In two simple commands that menace to programming is a thing of the past.

Code:
SetWindowLong(Form1.Handle, GWL_STYLE,
       GetWindowLong(Handle,GWL_STYLE) and not WS_CAPTION);

Height := ClientHeight;







This page was developed by FoxWare Design & Support.
Hosted by www.Geocities.ws

1