03-26-2011, 01:57 PM
Create this function.
Function th_attach_to_child
First line of toolbar:
Toolbar Toolbar
Function th_attach_to_child
;/
function# hWnd message wParam lParam
sel message
,case WM_INITDIALOG
,SetTimer hWnd -1 200 0
,
,case WM_TIMER
,sel wParam
,,case -1
,,int w=GetToolbarOwner(hWnd)
,,int wa=GetAncestor(w 2)
,,if(w=wa) ret
,,if !IsWindow(w)
,,,clo hWnd
,,else if min(wa) or hid(wa)
,,,if(!hid(hWnd)) hid w; hid hWnd
,,else
,,,if(hid(hWnd)) hid- w; hid- hWnd
err+First line of toolbar:
Toolbar Toolbar
