Some clarification comments

git-svn-id: trunk@33317 -
This commit is contained in:
sekelsenmat 2011-11-05 04:40:43 +00:00
parent e59e197d1e
commit 926a51a81f
2 changed files with 5 additions and 1 deletions

View File

@ -1093,7 +1093,10 @@ begin
end;
{ Returns in MaxCount how many characters fit into a given MaxWidth
It also returns the width of each character }
It also returns the width of each character
MaxCount is given in the number of UTF-8 characters, not bytes
}
function TWidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger;
var Size: TSize): Boolean;

View File

@ -2050,6 +2050,7 @@ begin
Result := TColorRef(Windows.GetTextColor(DC));
end;
// MaxCount is provided in the number of UTF-8 characters, not bytes
function TWin32WidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger; var Size: TSize): Boolean;
var