Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attach a toolbar to a sizeable child window
#2
You can attach toolbars to child windows too.

Macro
Code:
Copy      Help
int hwndChild=id(2210 _hwndqm)
mac "Toolbar37" hwndChild

I never tested it before, and now surprised that it works. But the toolbar does not disappear when the window is minimized. You can use hook function for it.

Function tb_hook_control
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.
,SetTimer hWnd 30 1000 0
,
,case WM_TIMER
,Transparent hWnd iif(min(GetAncestor(GetToolbarOwner(hWnd) 2)) 0 256)
,

First line of toolbar:
Toolbar
Code:
Copy      Help
;/hook tb_hook_control


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)