Y
ynduanlian
Unregistered / Unconfirmed
GUEST, unregistred user!
在DELPHI中这样写:
procedure CreateParams(var Params: TCreateParams);override;
……
procedure TfrmMain.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.Style := Params.Style or WS_BORDER or WS_SIZEBOX;
end;
我想请教,在C++Builder中,声明部分的这个“OVERRIDE”该怎么改写啊?
BCB中如何重载CreateParams?
void __fastcall TfrmMain::CreateParams(TCreateParams *Params)
{
TForm::CreateParams(*Params);
Params->Style=Params->Style | WS_BORDER | WS_SIZEBOX;
};
procedure CreateParams(var Params: TCreateParams);override;
……
procedure TfrmMain.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.Style := Params.Style or WS_BORDER or WS_SIZEBOX;
end;
我想请教,在C++Builder中,声明部分的这个“OVERRIDE”该怎么改写啊?
BCB中如何重载CreateParams?
void __fastcall TfrmMain::CreateParams(TCreateParams *Params)
{
TForm::CreateParams(*Params);
Params->Style=Params->Style | WS_BORDER | WS_SIZEBOX;
};