Windows message when mouse left control?

I created a control and the mosemove for that control changes color, but I want to change it to the default when my mouse exits this control. I would have thought that WM_MOUSELEAVE would do this, but it is not.

thanks

+4
source share
2 answers

This will be the correct message.

Are you calling TrackMouseEvent ?

+4
source

You can try with WM_MOUSELEAVE (we have it in the CView class)

But I think the best way is to use _TrackMouseEvent.

Max.

0
source

Source: https://habr.com/ru/post/1310125/


All Articles