11-07-2009, 06:57 AM
Toolbar tb move owner
Trigger !a"- Notepad" "Notepad"
Function tb_move_owner
This is little tested. Need to test how works when the window is max, min, etc. If window disappears sometimes, try to uncheck "Follow Owner" in tb menu.
Trigger !a"- Notepad" "Notepad"
Function tb_move_owner
;/
function# hWnd message wParam lParam
sel message
,case WM_INITDIALOG ;;note: in QM < 2.2.0, this message is not sent. Use WM_CREATE instead.
,
,case WM_DESTROY
,
,case WM_MOVE
,RECT r; GetWindowRect hWnd &r
,int ho=GetToolbarOwner(hWnd)
,mov r.left r.bottom ho
,
,;;or this
,;case WM_WINDOWPOSCHANGED
,;WINDOWPOS* wp=+lParam
,;if(wp.flags&SWP_NOMOVE) ret
,;RECT r; GetWindowRect hWnd &r
,;int ho=GetToolbarOwner(hWnd)
,;mov r.left r.bottom ho
This is little tested. Need to test how works when the window is max, min, etc. If window disappears sometimes, try to uncheck "Follow Owner" in tb menu.