Главная страница | назад





Article #17469: How to get that zoomy minimizing thing going for my apps

 Question and Answer Database
FAQ2469C.txt How to get that zoomy minimizing thing going for my apps
Category :VCL
Platform :All
Product :C++Builder 3.x
Question:
When my app min/max's it doesn't do that cool/annoying windows animation thing,
how can I fix this?
Answer:
Put this in your form's cpp that you want a form to minimize properly:
//---------------------------------------------------------------------------
void __fastcall TForm1::CreateParams(TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.ExStyle |= WS_EX_APPWINDOW;
}
//---------------------------------------------------------------------------
And off course this in the forms .h somewhere in the class header:
//---------------------------------------------------------------------------
class PACKAGE TForm1 : public TForm
{
[...]
public:
void __fastcall CreateParams(TCreateParams &Params);
[...]
};
//---------------------------------------------------------------------------
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99