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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms in C++ Builder 3 1

Status
Not open for further replies.

Royt

IS-IT--Management
Jan 31, 2000
61
GB
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 &quot;Borland C++ Builder How-To: The Definitive C++ Builder Problem Solver&quot;by Miano, Cabanski, & Howe. It is set up in a How-to format. The above code came from the article entitled &quot;How do I make a splash screen?&quot; Recommended reading IMHO.<br>
<p>James P. Cottingham<br><a href=mailto:main@ivcusa.com>main@ivcusa.com</a><br><a href= Veneer Co., Inc.</a><br>All opinions are mine alone and do not necessarily reflect those of my employer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top