Is it possible to hide a form title bar in C++Builder 3?<br>
I want to use a form containing name and address fields from a database as the header in several other forms.<br>
Yes, you can but you must edit both your .h and .cpp code. In your header file (.h) you should see a section the says...<br>
<br>
private // User declarations<br>
<br>
Just below this add...<br>
void __fastcall CreateParams(TCreateParams &Params);<br>
<br>
Next you will need to edit your .cpp file. Go to the bottom of the file and add the following lines...<br>
void __fastcall TForm1::CreateParams(TCreateParams &Params)<br>
{<br>
TForm::CreateParams(Params); // base class<br>
Params.Style &= ~WS_CAPTION; // remove caption<br>
}<br>
<br>
BTW, this code came from the book "Borland C++ Builder How-To: The Definitive C++ Builder Problem Solver"by Miano, Cabanski, & Howe. It is set up in a How-to format. The above code came from the article entitled "How do I make a splash screen?" Recommended reading IMHO.<br>
<p>James P. Cottingham<br><a href=mailto:main@ivcusa.com>main@ivcusa.com</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.