mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 16:39:26 +02:00
Components: fixed ActiveX compilation on Win64, patch by Ludo Brands, bug #22049
git-svn-id: trunk@37295 -
This commit is contained in:
parent
9990ed11e7
commit
7ec194ec8f
@ -584,8 +584,8 @@ procedure TActiveXContainer.Attach;
|
||||
var
|
||||
size:TPOINT;
|
||||
begin
|
||||
SetWindowLong(Handle,GWLP_USERDATA, ptruint(Self));
|
||||
FPrevWndProc:=Windows.WNDPROC(SetWindowLong(Handle,GWL_WNDPROC,PtrInt(@WndCallback)));
|
||||
SetWindowLongPtr(Handle,GWLP_USERDATA, PtrInt(Self));
|
||||
FPrevWndProc:=Windows.WNDPROC(SetWindowLongPtr(Handle,GWL_WNDPROC,PtrInt(@WndCallback)));
|
||||
FAttached:=true;
|
||||
olecheck((FOleObject as IOleObject).SetClientSite(Self as IOleClientSite));
|
||||
olecheck((FOleObject as IOleObject).SetHostNames(PWideChar(name),PWideChar(name)));
|
||||
@ -601,8 +601,8 @@ const
|
||||
begin
|
||||
if FAttached then
|
||||
begin
|
||||
SetWindowLong(Handle,GWL_WNDPROC,PtrUInt(@FPrevWndProc));
|
||||
SetWindowLong(Handle,GWLP_USERDATA, 0);
|
||||
SetWindowLongPtr(Handle,GWL_WNDPROC,PtrInt(@FPrevWndProc));
|
||||
SetWindowLongPtr(Handle,GWLP_USERDATA, 0);
|
||||
end;
|
||||
if assigned(FOleObject) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user