delphi 的这个函数转成C++怎么转?
procedure TMYCustomPanel.WMERASEBKGND(var Msg: TMessage);
begin
if m_EraseBackground then
inherited;
end;
void __fastcall TMYCustomPanel::WMERASEBKGND(TMessage& Msg)
{
if m_EraseBackground then
inherited;//这句对应C++ builder里什么?
}
[解决办法]
用TMYCustomPanel的父类方法来替换即可:
void __fastcall TMYCustomPanel::WMERASEBKGND(TMessage& Msg){ if (m_EraseBackground) TCustomPanel::WMERASEBKGND(&Msg);}