Hi all, I would like to know how to get the control ID, control handle and notification code from NMHDR structure. Here is my code. Is it the right method ?
of WM_NOTIFY :
var tNMHDR : NMHDR = cast[NMHDR](repr(lParam))
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 "
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)