win32 interface: fixed range error (HDC: unsigned; WPARAM: signed)

git-svn-id: trunk@10872 -
This commit is contained in:
vincents 2007-04-04 20:52:10 +00:00
parent 737f7e6775
commit 4654108191

View File

@ -1358,7 +1358,7 @@ begin
and (lWinControl <> nil) then
begin
// Groupbox (which is a button) doesn't erase it's background properly; force repaint
lWinControl.EraseBackground(WParam);
lWinControl.EraseBackground(HDC(WParam));
LMessage.Result := 1;
end else begin
LMessage.Msg := LM_ERASEBKGND;