Finally i got the NMHDR structure without using "repr" but i cant get the 
BCN_HOTITEMCHANGE code. This is my code but this if statement never resulting a 
true. 
    
    
    of WM_NOTIFY :
                tNMHDR = cast[NMHDR](lParam)
                
                e.nCode = cast[UINT](tNMHDR.code)
                e.cnID = cast[UINT](tNMHDR.idFrom)
                e.sender = cast[HWND](tNMHDR.hwndFrom)
                echo tNMHDR.code  # This prints a number but not -1459
                if tNMHDR.code == BCN_HOTITEMCHANGE :
                    echo "Mouse Entered the Button "
    
    
    Run

I am getting a number printed on screen with echo command when i move my mouse 
on the button, but that number is not the BCN_HOTITEMCHANGE number. (-1459) 

Reply via email to