Lets say we have a working window and HWND with:
WS_CAPTION | WS_SYSMENU as dwStyles.
and 500, 435 as nWidth, nHeight.
Now we draw an image (bitmap or some format) on the window with some graphics libirary ( I'm using Gdi+).
Lets have this in a class called MenuImage.
How do we know when the mouse is indide bounds of the image's rect (onHover).
And how dow we know when the user has clicked inside the bounds of the image's rect (onClick)
I could do this processing WM_MOUSEMOVE and WM_LMOUSEDOWN
but it seems so unindependent.