win32: replace default CreateRoundRectRGN with a winapi call (issue #0018125)

git-svn-id: trunk@29849 -
This commit is contained in:
paul 2011-03-15 04:34:00 +00:00
parent 723143ddc3
commit cbb791a543
2 changed files with 8 additions and 0 deletions

View File

@ -995,6 +995,13 @@ begin
Result := Windows.CreateRectRgn(X1, Y1, X2, Y2);
end;
function TWin32WidgetSet.CreateRoundRectRgn(X1, Y1, X2, Y2, nWidthEllipse,
nHeightEllipse: Integer): HRGN;
begin
Result := Windows.CreateRoundRectRgn(X1, Y1, X2, Y2, nWidthEllipse,
nHeightEllipse);
end;
{------------------------------------------------------------------------------
Method: DeleteDC
Params: HDC - handle to device context

View File

@ -59,6 +59,7 @@ function CreatePatternBrush(ABitmap: HBITMAP): HBRUSH; override;
function CreatePenIndirect(const LogPen: TLogPen): HPEN; override;
function CreatePolygonRgn(Points: PPoint; NumPts: Integer; FillMode: integer): HRGN; override;
function CreateRectRgn(X1, Y1, X2, Y2: Integer): HRGN; override;
function CreateRoundRectRgn(X1, Y1, X2, Y2, nWidthEllipse, nHeightEllipse: Integer): HRGN; override;
function DeleteDC(HDC: HDC): Boolean; override;
function DeleteObject(GDIObject: HGDIOBJ): Boolean; override;