Autor Beitrag
Burgpflanze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67

Windows2000 Prof. SP4
Delphi7 Enterprise
BeitragVerfasst: Mo 15.07.02 16:25 
Wie gesagt, ich will die automatische Anzeige der horizontalen Scrollbar
in einem TreeView unterdrücken, da ich im OnCustomDrawItem-Ereignis die Einträge so kürze, das sie nicht über den rechten Rand des Treeviews hinausgehen.
Hat jemand eine Idee, wie dies zu bewerkstelligen ist?




Gruss,
Burgpflanze

_________________
Gruss, Burgpflanze
Burgpflanze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67

Windows2000 Prof. SP4
Delphi7 Enterprise
BeitragVerfasst: Mo 15.07.02 16:51 
Antwort im Internet gefunden (in C++).

Manchmal geht es doch schneller, als man denkt. :wink:

Hier meine Lösung:

1. Neue Klasse von TTreeView ableiten
2. Im private-Teil Nachricht WM_WINDOWPOSCHANGING abfangen
3. In der dazugehörigen procedure ShowScrollBar(Handle, SB_HORZ, LongBool(0)); ausführen lassen



Gruss,
Burgpflanze

_________________
Gruss, Burgpflanze