mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:09:14 +02:00
carbon: Fixes compilation with the VerboseWinAPI define
git-svn-id: trunk@30314 -
This commit is contained in:
parent
6eca9a8764
commit
2d8f62d005
@ -1401,7 +1401,8 @@ var
|
|||||||
r : TRect;
|
r : TRect;
|
||||||
begin
|
begin
|
||||||
{$IFDEF VerboseWinAPI}
|
{$IFDEF VerboseWinAPI}
|
||||||
DebugLn('TCarbonWidgetSet.GetDCOriginRelativeToWindow HWnd: ' + DbgS(HWnd) + ' PaintDC: ' + DbgS(PaintDC));
|
DebugLn(Format('TCarbonWidgetSet.GetDCOriginRelativeToWindow WindowHandle: %x PaintDC: %x',
|
||||||
|
[WindowHandle, PaintDC]));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
Result := CheckDC(PaintDC, 'GetDCOriginRelativeToWindow');
|
Result := CheckDC(PaintDC, 'GetDCOriginRelativeToWindow');
|
||||||
@ -2056,7 +2057,7 @@ begin
|
|||||||
Result := clNone;
|
Result := clNone;
|
||||||
|
|
||||||
{$IFDEF VerboseWinAPI}
|
{$IFDEF VerboseWinAPI}
|
||||||
DebugLn('TCarbonWidgetSet.GetTextColor DC: ' + DbgS(HDC));
|
DebugLn('TCarbonWidgetSet.GetTextColor DC: ' + DbgS(DC));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
if not CheckDC(DC, 'GetTextColor') then Exit;
|
if not CheckDC(DC, 'GetTextColor') then Exit;
|
||||||
@ -3281,7 +3282,8 @@ function TCarbonWidgetSet.SetMenu(AWindowHandle: HWND; AMenuHandle: HMENU): Bool
|
|||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
{$IFDEF VerboseWinAPI}
|
{$IFDEF VerboseWinAPI}
|
||||||
DebugLn('TCarbonWidgetSet.SetMenu AWindowHAndle: ' + DbgS(HWnd) + ' AMenuHandle: ' + DbgS(AMenuHandle));
|
DebugLn(Format('TCarbonWidgetSet.SetMenu AWindowHAndle: %x AMenuHandle: %x',
|
||||||
|
[AWindowHandle, AMenuHandle]));
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
if not CheckWidget(AWindowHandle, 'SetMenu') then Exit;
|
if not CheckWidget(AWindowHandle, 'SetMenu') then Exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user