Вниз
Скачать: CL | DM;

Проблемы с MDI !!!   Найти похожие ветки 

 
Arestotel   (2004-06-14 14:09) [0]

При перемещении дочернего окна в MDI-приложение за область родительского окна появляется полоса прокрутки.
Подскажите плиз как от этого избавиться ?
p.s. Form1.verscrollbar.visible := False не подходит!!!


 
cdadmitriy   (2004-06-14 16:37) [1]

function ClientWindowProc(wnd: HWND; msg: Cardinal; wparam, lparam: Integer ): Integer; stdcall;
 Const WS_MY=WS_HSCROLL or WS_VSCROLL;
 var F: Pointer; L:Longint;
begin
 f := Pointer(GetWindowLong(wnd, GWL_USERDATA ));
 case msg of
   WM_NCCALCSIZE: begin
     L:=GetWindowLong(wnd,GWL_STYLE); if (L and WS_MY)<>0 then SetWindowLong(wnd,GWL_STYLE,L and not WS_MY);
   end;
 end;
 Result := CallWindowProc(f, wnd, msg, wparam, lparam);
end;


 
cdadmitriy   (2004-06-14 16:37) [2]

wnd:=ClientHandle;
 if wnd <> 0 then begin
   if GetWindowLong(wnd, GWL_USERDATA) = 0 then //cannot subclass client window, userdata already in use
   SetWindowLong(wnd, GWL_USERDATA, SetWindowLong(wnd, GWL_WNDPROC, integer(@ClientWindowProc)));
 end;



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

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



Память: 0.45 MB
Время: 0.02 c
8-1081527041
Андрей Арт
2004-04-09 20:10
2004.06.27
Звук


14-1086600008
BOA_KAA
2004-06-07 13:20
2004.06.27
Свадьба... :)


6-1083699228
sashcan
2004-05-04 23:33
2004.06.27
Про сотовую связь


1-1087023799
KLAUS
2004-06-12 11:03
2004.06.27
Подскажите как Выислить точку входа (Entry Point),


14-1086460588
Marser
2004-06-05 22:36
2004.06.27
Список мастеров




   Наверх