diff --git a/lcl/interfaces/win32/win32winapi.inc b/lcl/interfaces/win32/win32winapi.inc index 311e76539d..bd82eab619 100644 --- a/lcl/interfaces/win32/win32winapi.inc +++ b/lcl/interfaces/win32/win32winapi.inc @@ -2640,7 +2640,7 @@ End; Sets the mouse capture to the specified window. ------------------------------------------------------------------------------} -Function TWin32WidgetSet.SetCapture(Value: LongInt): LongInt; +Function TWin32WidgetSet.SetCapture(Value: HWND): HWND; Begin Assert(False, Format('Trace:> [TWin32WidgetSet.SetCapture] 0x%x', [Value])); Result := Windows.SetCapture(Value); @@ -3077,6 +3077,9 @@ end; { ============================================================================= $Log$ + Revision 1.135 2005/02/05 20:40:17 vincents + SetCapture uses HWND as parameter and result type + Revision 1.134 2005/02/05 09:05:51 micha add platform independent winapi function IsWindowEnabled diff --git a/lcl/interfaces/win32/win32winapih.inc b/lcl/interfaces/win32/win32winapih.inc index 4d55ce0685..bbd7e75f59 100644 --- a/lcl/interfaces/win32/win32winapih.inc +++ b/lcl/interfaces/win32/win32winapih.inc @@ -160,7 +160,7 @@ Function SendMessage(HandleWnd: HWND; Msg: Cardinal; WParam: WParam; LParam: LPa function SetActiveWindow(Window: HWND): HWND; override; Function SetBkColor(DC: HDC; Color: TColorRef): TColorRef; Override; Function SetBkMode(DC: HDC; BkMode: Integer): Integer; Override; -Function SetCapture(Value: LongInt): LongInt; Override; +Function SetCapture(Value: HWND): HWND; Override; Function SetCaretPos(X, Y: Integer): Boolean; Override; Function SetCaretPosEx(Handle: HWnd; X, Y: Integer): Boolean; Override; Function SetCaretRespondToFocus(Handle: HWND; ShowHideOnFocus: Boolean): Boolean; Override; @@ -194,6 +194,9 @@ Procedure DeleteCriticalSection(var CritSection: TCriticalSection); Override; { ============================================================================= $Log$ + Revision 1.53 2005/02/05 20:40:17 vincents + SetCapture uses HWND as parameter and result type + Revision 1.52 2005/02/05 09:05:51 micha add platform independent winapi function IsWindowEnabled