02.12.2012, 21:53
|
|
.
|
|
Регистрация: 18.05.2011
Адрес: Омск
Сообщения: 3,970
Версия Delphi: 3,5,7,10,12,XE2
Репутация: выкл
|
|
Вот вариант
Код:
procedure ResizeWnd(Wnd : HWND; wParam, lParam : Integer);
var
aRect : TRect;
begin
GetClientRect(Wnd, aRect);
SetWindowPos(PlayList, 0, 0, aRect.Bottom - 100, aRect.Right, aRect.Bottom, SWP_NOZORDER);
end;
function WndProc(Wnd : HWND; Msg, wParam, lParam : Integer) : Integer; stdcall;
...
WM_SIZE : ResizeWnd(Wnd, wParam, lParam);
...
(aRect.Bottom - 100) здесь Top равен высоте главного окна - 100.
__________________
Je venus de nulle part
55.026263 с.ш., 73.397636 в.д.
|