Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide titlebar of any window
#2
Toolbar tb move owner
Trigger !a"- Notepad" "Notepad"     Help - how to add the trigger to the macro
Code:
Copy      Help
;/hook "tb_move_owner"

Function tb_move_owner
Code:
Copy      Help
;/
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)