[lazarus] LCL: WMPaint

Micha Nelissen mdvpost at hotmail.com
Sun Jun 29 10:58:18 EDT 2003


Hi,

Two questions.

1) The WMPaint method for TCustomForm and TScrollingWinControl are exactly
the same. Is it supposed to be this way?

2) The WM_ERASEBKGND really needs to be implemented, otherwise it will be
black on windows. Delphi has:

  if not FDoubleBuffered or
    (TMessage(Message).wParam = TMessage(Message).lParam) then
    FillRect(Message.DC, ClientRect, FBrush.Handle);
  Message.Result := 1;

Regards,

Micha.






More information about the Lazarus mailing list