Fix draw text background in rxdbgrid if themes enabled. Thx for Boris from freepascal.ru

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1465 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75
2011-01-27 20:31:51 +00:00
parent 412922cb29
commit 233dbee19f

View File

@ -938,6 +938,7 @@ begin
if DrawRect.Top < ARect.Top + 1 then
DrawRect.Top := ARect.Top + 1;
SetBkMode(ACanvas.Handle, TRANSPARENT);
DrawText(ACanvas.Handle, PChar(Text), Length(Text), DrawRect,
// DT_VCENTER or DT_WORDBREAK or DT_CENTER
ALIGN_FLAGS_HEADER[Alignment] {or DT_VCENTER or DT_END_ELLIPSIS }or DT_WORDBREAK