Jump to content

how to use WM_MOUSEHOVER?


 Share

Recommended Posts

I tried:

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global Const $WM_MOUSEHOVER = 0x02A1
$Form1 = GUICreate("Form1", 378, 83, 193, 125)
$Label1 = GUICtrlCreateLabel("Label1", 16, 24, 36, 17)
GUISetState(@SW_SHOW)
GUIRegisterMsg($WM_MOUSEHOVER, "WM_HOVER")
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
Func WM_HOVER($hWnd, $Msg, $wParam, $lParam)
    Switch $wParam
        case $Label1
            ConsoleWrite("Label hovered" & @CRLF)
    EndSwitch
    Return $GUI_RUNDEFMSG
EndFunc

and it shows nothing.... :)

I would appreciate your help.

EDIT ok, I found this: LINK, but couldn't make it work, I lack skills with dll structing ;/

Edited by sandin
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...