Function Reference


Sets the window to which the control sends notification messages

#include <GuiToolbar.au3>
_GUICtrlToolbar_SetParent ( $hWnd, $hParent )


$hWnd Handle to the control
$hParent Handle to the window to receive notification messages

Return Value

Success: the handle to the previous notification window.
Failure: 0.


The $TB_SETPARENT message does not change the parent window that was specified when the control was created.
Calling the _WinAPI_GetParent() function control will return the actual parent window, not the window specified in
$TB_SETPARENT. To change the control's parent window, call the _WinAPI_SetParent() function.