开发者

Windows message when mouse leave a control?

开发者 https://www.devze.com 2022-12-30 12:29 出处:网络
I have created a control and the mosemove for that control makes it change co开发者_运维知识库lor, but I want to change it back to default when my mouse moves out of that control. I would have thought

I have created a control and the mosemove for that control makes it change co开发者_运维知识库lor, but I want to change it back to default when my mouse moves out of that control. I would have thought WM_MOUSELEAVE would do it but it didn't.

Thanks


That would be the correct message.

Are you calling TrackMouseEvent?


You could try with WM_MOUSELEAVE (we have this in a CView derived class )

But I think the best way is to use _TrackMouseEvent.

Max.

0

精彩评论

暂无评论...
验证码 换一张
取 消