Jump to content
Sign in to follow this  
sandin

how to use WM_MOUSEHOVER?

Recommended Posts

sandin

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

Share this post


Link to post
Share on other sites
Madza91

I think we are solved this :)


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
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
Sign in to follow this  

×