Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toolbar - WM_MBUTTONDOWN
#1
is WM_MBUTTONDOWN not implemented for toolbars ?

WM_RBUTTONDOWN
is working but for middle i currently have to use my
my main middleclick trigger function (disabled it to make sure ...).


middleclick (middleclick mania)
Code:
Copy      Help
,case "qm"
,,if(wintest(f.hwnd "" "QM_Editor"))
,,,sel GetWinId(f.hwnd2)
,,,,case 2202 mac "qm2202"
,,,,case 2201 ClearOutput
,,,,case 2203 mac "qm_find"
,,if _s.getwinclass(f.hwnd)="HH Parent"
,,,mac "_help"        
,,if(wintest(f.hwnd "Find"))
,,,mac "get_macroname"

,,else if(wintest(f.hwnd "" "QM_toolbar"))
,,,if(_s.getwintext(f.hwnd)=="DESKBAR")
,,,,mac "qm_deskbar_middle"
,,,if(_s.getwintext(f.hwnd)=="BBCODE_BAR")
,,,,_bbcode(2)




thanks
pi
#2
Mouse messages such as WM_LBUTTONDOWN are posted to the window that is at the top, in this case to the ToolbarWindow32 control. Either subclass it or use WM_SETCURSOR instead. WM_SETCURSOR is always passed to parent.

Code:
Copy      Help
;/
function# hWnd message wParam lParam

sel message
,case WM_SETCURSOR
,sel lParam>>16
,,case WM_MBUTTONDOWN
,,out "M"
,,
#3
Thank you a million times

thats really amazing !
now i have mostly all for my toolbars :
left, middle, right AND ! move toolbar.

the only missing part is drop (i know ...)
pi
#4
Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)