MISIIM Posted March 16, 2008 Share Posted March 16, 2008 (edited) Is there any notification for use with WM_NOTIFY that is sent on a middle/mouse wheel click? I looked around MSDN for something, but I couldn't find anything. Thanks a lot. Edited March 16, 2008 by MISIIM Link to comment Share on other sites More sharing options...
smashly Posted March 17, 2008 Share Posted March 17, 2008 I know you asked for WM_NOTIFY and I'm not sure if this helps. But you can register the middle mouse click with it's constant and GuiRegisterMsg()..#include <GUIConstants.au3> Global Const $WM_MBUTTONDOWN = 0x0207 GUICreate("My GUI") GUISetState (@SW_SHOW) GUIRegisterMsg($WM_MBUTTONDOWN, "WM_MBUTTONDOWN_FUNC") While 1 If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit Wend Func WM_MBUTTONDOWN_FUNC($hWnd, $Msg, $wParam, $lParam) ConsoleWrite("$WM_MBUTTONDOWN = 0x" & Hex($Msg, 4) & @LF) Return $GUI_RUNDEFMSG EndFunc Cheers Link to comment Share on other sites More sharing options...
rasim Posted March 17, 2008 Share Posted March 17, 2008 (edited) I know you asked for WM_NOTIFY and I'm not sure if this helps. But you can register the middle mouse click with it's constant and GuiRegisterMsg()..#include <GUIConstants.au3> Global Const $WM_MBUTTONDOWN = 0x0207 GUICreate("My GUI") GUISetState (@SW_SHOW) GUIRegisterMsg($WM_MBUTTONDOWN, "WM_MBUTTONDOWN_FUNC") While 1 If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit Wend Func WM_MBUTTONDOWN_FUNC($hWnd, $Msg, $wParam, $lParam) ConsoleWrite("$WM_MBUTTONDOWN = 0x" & Hex($Msg, 4) & @LF) Return $GUI_RUNDEFMSG EndFunc Cheers Hi @smashly! I know about this message, but it work only for window, not for controls. Need another solution... Edited March 17, 2008 by rasim Link to comment Share on other sites More sharing options...
Siao Posted March 17, 2008 Share Posted March 17, 2008 Subclass the listview. Then you can catch its WM_MBUTTONDOWN. "be smart, drink your wine" Link to comment Share on other sites More sharing options...
MISIIM Posted March 17, 2008 Author Share Posted March 17, 2008 May I ask how I would sub class a control? (I am actually using a tab control.) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now