Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.011 c
1-45269
Viktor Kushnir
2002-10-03 07:08
2002.10.14
TObject.Create


14-45545
Карелин Артем
2002-09-19 15:25
2002.10.14
Киньте доки по криптованию.


8-45464
VEG
2002-06-12 00:51
2002.10.14
Подскажите, пожалуйста!


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


4-45631
Vvedensk
2002-08-29 16:00
2002.10.14
Буфер обмена в Windows.




   Наверх