Habe eine Lösung gefunden:
Delphi-Quellcode:
procedure TTestTreeview.WMNCCalcSize(
var msg: TMessage);
var
style: Integer;
begin
style := GetWindowLong(
handle, GWL_STYLE );
if (style
and WS_VSCROLL) <> 0
then
SetWindowLong(
handle, GWL_STYLE, style
and not WS_VSCROLL );
if (style
and WS_HSCROLL) <> 0
then
SetWindowLong(
handle, GWL_STYLE, style
and not WS_HSCROLL );
inherited;
end;