mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 01:49:25 +02:00
implement TWidgetSet.FrameRect for win32
git-svn-id: trunk@8280 -
This commit is contained in:
parent
683d87d655
commit
e90ca7f263
@ -1339,6 +1339,16 @@ Begin
|
||||
Result := Boolean(DrawEdge(DC, Rect, Edge[Style], BF_RECT));
|
||||
End;
|
||||
|
||||
function TWin32WidgetSet.FrameRect(DC: HDC; const ARect: TRect;
|
||||
hBr: HBRUSH) : integer;
|
||||
var
|
||||
lRect: Windows.RECT;
|
||||
begin
|
||||
{$message warn TWin32WidgetSet.FrameRect TODO: optimize ARect copying}
|
||||
lRect := ARect;
|
||||
Result := Windows.FrameRect(DC, lRect, hBr);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: GetActiveWindow
|
||||
Params: none
|
||||
|
@ -80,7 +80,8 @@ function ExtSelectClipRGN(dc: hdc; rgn : hrgn; Mode : Longint) : Integer; overri
|
||||
function FillRect(DC: HDC; Const Rect: TRect; Brush: HBRUSH): Boolean; Override;
|
||||
{ Draws a 3D border in GTK native style. }
|
||||
function Frame3D(DC: HDC; var Rect: TRect; Const FrameWidth: Integer; Const Style: TBevelCut): Boolean; Override;
|
||||
|
||||
function FrameRect(DC: HDC; const ARect: TRect; hBr: HBRUSH) : integer; override;
|
||||
|
||||
function GetBitmapRawImageDescription(Bitmap: HBITMAP; Desc: PRawImageDescription): Boolean; Override;
|
||||
function GetDeviceRawImageDescription(DC: HDC; Desc: PRawImageDescription): boolean; Override;
|
||||
function GetRawImageFromDevice(SrcDC: HDC; const SrcRect: TRect; var NewRawImage: TRawImage): boolean; Override;
|
||||
|
Loading…
Reference in New Issue
Block a user