|
发表于 2020-3-3 15:45:01
|
显示全部楼层
unit1.h
//---------------------------------------------------------------------------
class TfmFile : public TForm
{
__published: // IDE-managed Components
...
private: // User declarations
...
public: // User declarations
...
protected:
void __fastcall CreateParams(Controls::TCreateParams &Params);
};
//---------------------------------------------------------------------------
unit1.cpp
//---------------------------------------------------------------------------
void __fastcall TfmFile::CreateParams(Controls::TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.WndParent=GetActiveWindow();
}
//---------------------------------------------------------------------------
|
|