Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.10.14;
Скачать: CL | DM;

Вниз

скроллеры у TTreeView   Найти похожие ветки 

 
ded_di ©   (2002-10-01 15:20) [0]

Как у TTreeView убрать полосы прокрутки? Спасибо.


 
ded_di ©   (2002-10-02 16:22) [1]

?
и так пробовал
SetWindowLong(TreeView1.Handle,GWL_STYLE,(GetWindowLong(TreeView1.Handle,GWL_STYLE) and (not WS_HSCROLL)) and (not WS_HSCROLL));
и так

procedure TForm1.MyWndProc(var Message: TMessage);
var
newStyleStruct : PSTYLESTRUCT;
msg : TWMStyleChanging;
begin
if Message.Msg = WM_STYLECHANGING then
if Message.WParam = GWL_STYLE then
begin
msg:=TWMStyleChanging(Message);
newStyleStruct:=msg.StyleStruct;
if ((WS_HSCROLL and newStyleStruct.styleNew = WS_HSCROLL) or
(WS_VSCROLL and newStyleStruct.styleNew = WS_VSCROLL)) then
begin
if (WS_HSCROLL and newStyleStruct.styleNew = WS_HSCROLL) then
newStyleStruct.styleNew := newStyleStruct.styleNew and (not WS_HSCROLL);
if (WS_VSCROLL and newStyleStruct.styleNew = WS_VSCROLL) then
newStyleStruct.styleNew := newStyleStruct.styleNew and (not WS_VSCROLL);
msg.StyleStruct:=newStyleStruct;
TreeViewWindowProc(TMessage(msg));
end
else
TreeViewWindowProc(Message);
end
else
TreeViewWindowProc(Message)
else
TreeViewWindowProc(Message);
end;


 
Song ©   (2002-10-02 16:33) [2]

ShowScrollBar()


 
ded_di ©   (2002-10-02 16:55) [3]

Спасибо, преогромное.
Извините, что до сих пор не научился читать хелпы.



Страницы: 1 вся ветка

Текущий архив: 2002.10.14;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.016 c
1-45344
Leshka18
2002-10-06 00:30
2002.10.14
Как скомпилить?


8-45467
TPavel
2002-05-12 17:49
2002.10.14
определение тонального набора


14-45563
VEG
2002-09-19 12:35
2002.10.14
Об соединении двух компьютеров через звуковой канал.


1-45367
Zhenya_g
2002-10-06 14:32
2002.10.14
время работы


14-45546
elektro
2002-09-18 16:54
2002.10.14
Upgrade компьютера.