mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 12:49:13 +02:00
carbon: implemented GetBkColor.
git-svn-id: trunk@27424 -
This commit is contained in:
parent
216e7ca979
commit
5106674f1f
@ -1150,6 +1150,18 @@ begin
|
|||||||
Result:=inherited GetBitmapBits(Bitmap, Count, Bits);
|
Result:=inherited GetBitmapBits(Bitmap, Count, Bits);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TCarbonWidgetSet.GetBkColor(DC: HDC): TColorRef;
|
||||||
|
begin
|
||||||
|
{$IFDEF VerboseWinAPI}
|
||||||
|
DebugLn('TCarbonWidgetSet.GetBkColor DC: ' + DbgS(DC));
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
Result := CLR_INVALID;
|
||||||
|
|
||||||
|
if not CheckDC(DC, 'GetBkColor') then Exit;
|
||||||
|
Result := TCarbonDeviceContext(DC).BkColor;
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Method: GetCapture
|
Method: GetCapture
|
||||||
Returns: The handle of the capture window
|
Returns: The handle of the capture window
|
||||||
|
@ -97,6 +97,7 @@ function FrameRect(DC: HDC; const ARect: TRect; hBr: HBRUSH): Integer; override;
|
|||||||
|
|
||||||
function GetActiveWindow : HWND; override;
|
function GetActiveWindow : HWND; override;
|
||||||
function GetBitmapBits(Bitmap: HBITMAP; Count: Longint; Bits: Pointer): Longint; override;
|
function GetBitmapBits(Bitmap: HBITMAP; Count: Longint; Bits: Pointer): Longint; override;
|
||||||
|
function GetBkColor(DC: HDC): TColorRef; override;
|
||||||
function GetCapture: HWND; override;
|
function GetCapture: HWND; override;
|
||||||
function GetCaretPos(var lpPoint: TPoint): Boolean; override;
|
function GetCaretPos(var lpPoint: TPoint): Boolean; override;
|
||||||
function GetCaretRespondToFocus(handle: HWND; var ShowHideOnFocus: boolean): Boolean; override;
|
function GetCaretRespondToFocus(handle: HWND; var ShowHideOnFocus: boolean): Boolean; override;
|
||||||
|
Loading…
Reference in New Issue
Block a user