VirtualTreeView: fix SetWindowLongPtrW

This commit is contained in:
Martin 2022-01-25 17:10:32 +01:00
parent be48000561
commit 967ec6c4f6

View File

@ -92,7 +92,7 @@ begin
nil, WS_POPUP, X - lSize.CX div 2, Y - lSize.CY div 2, lSize.CX, lSize.CY,
OwnerHandle, 0, HInstance, nil);
//todo use SetWindowLongPtr later
SetWindowLong(FHandle,GWL_USERDATA,PtrInt(Self));
SetWindowLongPtrW(FHandle,GWL_USERDATA,PtrInt(Self));
FImage := TBitmap.Create;
end;