#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$hParent_GUI = GUICreate("NSR-авто, v. 1.0", 222, 730, 269, 84, BitOR($WS_SYSMENU, $WS_CAPTION))
$aPos = WinGetPos($hParent_GUI)
$hChild_GUI = GUICreate("", 60, 18, $aPos[2] - 95, -23, $WS_POPUP, $WS_EX_MDICHILD, $hParent_GUI)
$hBt1 = GUICtrlCreateButton("<", 0, 0, 30, 18)
$hBt2 = GUICtrlCreateButton(">", 30, 0, 30, 18)
GUISetState(@SW_SHOW, $hChild_GUI)
GUISetState(@SW_SHOW, $hParent_GUI)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $hBt1
WinMove($hParent_GUI, "", 0, Default)
WinActivate($hParent_GUI)
Case $hBt2
WinMove($hParent_GUI, "", @DesktopWidth - $aPos[2], Default)
WinActivate($hParent_GUI)
EndSwitch
WEnd