Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide titlebar of any window
#1
can be easy done when you know the hwnd of your window.

SetWinStyle hwnd WS_CAPTION 2

but then the window can't be moved anymore. so how to i tell the attached toolbar that it should also
move hwnd?
pi
#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.


Forum Jump:


Users browsing this thread: 3 Guest(s)