mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:39:18 +02:00
Win32: fix compilation with ifdef OldToolbar
git-svn-id: trunk@58153 -
This commit is contained in:
parent
e62ffada11
commit
2fd39c0217
@ -766,7 +766,7 @@ var
|
|||||||
Params: TCreateWindowExParams;
|
Params: TCreateWindowExParams;
|
||||||
begin
|
begin
|
||||||
// general initialization of Params
|
// general initialization of Params
|
||||||
PrepareCreateWindow(AWinControl, Params);
|
PrepareCreateWindow(AWinControl, AParams, Params);
|
||||||
// customization of Params
|
// customization of Params
|
||||||
with Params do
|
with Params do
|
||||||
begin
|
begin
|
||||||
@ -778,7 +778,7 @@ begin
|
|||||||
Result := Params.Window;
|
Result := Params.Window;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TWin32WSToolbar.GetButtonCount(const AToolBar: TToolBar): integer;
|
class function TWin32WSToolbar.GetButtonCount(const AToolBar: TToolBar): integer;
|
||||||
begin
|
begin
|
||||||
Result := SendMessage(AToolbar.Handle, TB_BUTTONCOUNT, 0, 0)
|
Result := SendMessage(AToolbar.Handle, TB_BUTTONCOUNT, 0, 0)
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user