sashadeg
09-03-2010, 14:21
можно ли убрать края (рамки) у окна windows? Например вот эти края Windows Media Player Classic
http://i025.radikal.ru/1003/da/72ce69e7bd14t.jpg (http://i025.radikal.ru/1003/da/72ce69e7bd14.jpg)
sashadeg
09-03-2010, 17:21
Вряд ли это возможно... Но всё-таки...
Насколько я понимаю, это рамка самого окна?
Можно попробовать задать один лишь стиль $WS_POPUP:
#include <WindowsConstants.au3>
$hWindow = WinGetHandle (http://www.autoitscript.com/autoit3/docs/functions/WinGetHandle.htm)("Title")
_WinSetStyle($hWindow, $WS_POPUP)
Func (http://www.autoitscript.com/autoit3/docs/keywords.htm#Func) _WinSetStyle($hWnd, $nStyle = -1, $nExStyle = 0)
Local (http://www.autoitscript.com/autoit3/docs/keywords.htm#Local) Const (http://www.autoitscript.com/autoit3/docs/keywords.htm#Const) $GWL_STYLE = -16, $GWL_EXSTYLE = -20
Local (http://www.autoitscript.com/autoit3/docs/keywords.htm#Local) Const (http://www.autoitscript.com/autoit3/docs/keywords.htm#Const) $SWP_NOMOVE = 0x2, $SWP_NOSIZE = 0x1, $SWP_SHOWWINDOW = 0x40, $SWP_NOZORDER = 0x4
Local (http://www.autoitscript.com/autoit3/docs/keywords.htm#Local) $iFlags = BitOR (http://www.autoitscript.com/autoit3/docs/functions/BitOR.htm)($SWP_SHOWWINDOW, $SWP_NOSIZE, $SWP_NOMOVE, $SWP_NOZORDER)
If (http://www.autoitscript.com/autoit3/docs/keywords.htm#If) $nStyle = -1 Then (http://www.autoitscript.com/autoit3/docs/keywords.htm#Then) $nStyle = BitOR (http://www.autoitscript.com/autoit3/docs/functions/BitOR.htm)($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU)
DllCall (http://www.autoitscript.com/autoit3/docs/functions/DllCall.htm)("User32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", $GWL_STYLE, "int", $nStyle)
DllCall (http://www.autoitscript.com/autoit3/docs/functions/DllCall.htm)("User32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", $GWL_EXSTYLE, "int", $nExStyle)
DllCall (http://www.autoitscript.com/autoit3/docs/functions/DllCall.htm)("User32.dll", "int", "SetWindowPos", "hwnd", $hWnd, "hwnd", 0, "int", 0, "int", 0, "int", 0, "int", 0, "int", $iFlags)
EndFunc (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndFunc)
sashadeg
20-03-2010, 22:16
Афигенчик! Спасибо огромное!!! Даже не надеялся уже на ответ!!!
"То что доктор прописал"(с)
Извините что туплю, в программирование совсем не "секу". Есть программа -покерный клиент, необходимо в ней убрать рамку, реально ли это сделать свойствами винды, код выше видел, но не могу понять куда его сувать? Надеюсь на вашу помощь.
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.