mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +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;
|
||||
begin
|
||||
{$IFDEF VerboseWinAPI}
|
||||
DebugLn('TCarbonWidgetSet.GetDCOriginRelativeToWindow HWnd: ' + DbgS(HWnd) + ' PaintDC: ' + DbgS(PaintDC));
|
||||
DebugLn(Format('TCarbonWidgetSet.GetDCOriginRelativeToWindow WindowHandle: %x PaintDC: %x',
|
||||
[WindowHandle, PaintDC]));
|
||||
{$ENDIF}
|
||||
|
||||
Result := CheckDC(PaintDC, 'GetDCOriginRelativeToWindow');
|
||||
@ -2056,7 +2057,7 @@ begin
|
||||
Result := clNone;
|
||||
|
||||
{$IFDEF VerboseWinAPI}
|
||||
DebugLn('TCarbonWidgetSet.GetTextColor DC: ' + DbgS(HDC));
|
||||
DebugLn('TCarbonWidgetSet.GetTextColor DC: ' + DbgS(DC));
|
||||
{$ENDIF}
|
||||
|
||||
if not CheckDC(DC, 'GetTextColor') then Exit;
|
||||
@ -3281,7 +3282,8 @@ function TCarbonWidgetSet.SetMenu(AWindowHandle: HWND; AMenuHandle: HMENU): Bool
|
||||
begin
|
||||
Result := False;
|
||||
{$IFDEF VerboseWinAPI}
|
||||
DebugLn('TCarbonWidgetSet.SetMenu AWindowHAndle: ' + DbgS(HWnd) + ' AMenuHandle: ' + DbgS(AMenuHandle));
|
||||
DebugLn(Format('TCarbonWidgetSet.SetMenu AWindowHAndle: %x AMenuHandle: %x',
|
||||
[AWindowHandle, AMenuHandle]));
|
||||
{$ENDIF}
|
||||
|
||||
if not CheckWidget(AWindowHandle, 'SetMenu') then Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user