Что нового

DWM Set Window Attribute

musicstashall

Знающий
Сообщения
322
Репутация
7
Парни, не пинайте, не могу догнать, как задать атрибуты для фрейма окна. Вот я получаю атрибуты:

Код:
$tRect = _WinAPI_DwmGetWindowAttribute($hWnd, $DWMWA_EXTENDED_FRAME_BOUNDS)
$aPos = _WinAPI_GetPosFromRect($tRect)


Теперь как задать новые??

Код:
$DrawLeftBorder = $tRect.Left - 10
$DrawTopBorder = $tRect.Top
$DrawRightBorder = $tRect.Right - 10
$DrawBottomBorder = $tRect.Bottom - 10
$tRect = _WinAPI_CreateRectEx($DrawLeftBorder, $DrawTopBorder, $DrawRightBorder, $DrawBottomBorder)
_WinAPI_DwmSetWindowAttribute ( $hWnd, $iAttribute, $tRect )


Справка не дает такого атрибута
 
Верх