mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 00:20:08 +02:00
Removes unnecessary routine from wince
git-svn-id: trunk@25179 -
This commit is contained in:
parent
f6ff46e0d1
commit
d6636c9592
@ -56,8 +56,6 @@ type
|
|||||||
published
|
published
|
||||||
class function CreateHandle(const AWinControl: TWinControl;
|
class function CreateHandle(const AWinControl: TWinControl;
|
||||||
const AParams: TCreateParams): HWND; override;
|
const AParams: TCreateParams): HWND; override;
|
||||||
class procedure AdaptBounds(const AWinControl: TWinControl;
|
|
||||||
var Left, Top, Width, Height: integer; var SuppressMove: boolean); override;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TWinCEWSGroupBox }
|
{ TWinCEWSGroupBox }
|
||||||
@ -426,27 +424,10 @@ begin
|
|||||||
// if TWinCEWidgetSet(WidgetSet).ThemesActive
|
// if TWinCEWidgetSet(WidgetSet).ThemesActive
|
||||||
// and not Params.WindowInfo^.hasTabParent then
|
// and not Params.WindowInfo^.hasTabParent then
|
||||||
// Params.WindowInfo^.isGroupBox := true;
|
// Params.WindowInfo^.isGroupBox := true;
|
||||||
AWinControl.InvalidateClientRectCache(true);
|
// AWinControl.InvalidateClientRectCache(true);
|
||||||
Result := Params.Window;
|
Result := Params.Window;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TWinCEWSCustomGroupBox.AdaptBounds(const AWinControl: TWinControl;
|
|
||||||
var Left, Top, Width, Height: integer; var SuppressMove: boolean);
|
|
||||||
var
|
|
||||||
WinHandle, BuddyHandle: HWND;
|
|
||||||
begin
|
|
||||||
WinHandle := AWinControl.Handle;
|
|
||||||
// check if we have a ``container'', if so, move that
|
|
||||||
BuddyHandle := GetWindowInfo(WinHandle)^.ParentPanel;
|
|
||||||
if BuddyHandle <> 0 then
|
|
||||||
begin
|
|
||||||
MoveWindow(BuddyHandle, Left, Top, Width, Height, false);
|
|
||||||
Left := 0;
|
|
||||||
Top := 0;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{ TWinCEWSCustomListBox }
|
{ TWinCEWSCustomListBox }
|
||||||
|
|
||||||
class function TWinCEWSCustomListBox.CreateHandle(const AWinControl: TWinControl;
|
class function TWinCEWSCustomListBox.CreateHandle(const AWinControl: TWinControl;
|
||||||
|
Loading…
Reference in New Issue
Block a user