Author Topic: mouse over (hover) question  (Read 2130 times)

0 Members and 1 Guest are viewing this topic.

Frankolinox

  • Guest
mouse over (hover) question
« on: January 15, 2014, 02:36:27 AM »
lalala :)

.
« Last Edit: October 01, 2014, 08:42:54 AM by Frankolinox »

Mike Lobanovsky

  • Guest
Re: mouse over (hover) question
« Reply #1 on: January 15, 2014, 08:48:05 AM »
Hello Frank,

Modern OS's have two relatively new window messages, WM_MOUSEHOVER and WM_MOUSELEAVE, that work in conjunction with the TrackMouseEvent() WinAPI to generate the events that you're trying to emulate with SetCapture()/ReleaseCapture().

Prefer to use this new functionality because SetCapture()/ReleaseCapture() are notorious for breaking the natural flow of Windows events in a window callback function and are cumbersome in very many situations.

Please read up on these messages in MSDN and/or elsewhere and try to use them in your code. If you fail to do that yourself, I can help you out with fixing it later on.

Have fun! :)

Mike Lobanovsky

  • Guest
Re: mouse over (hover) question
« Reply #2 on: January 16, 2014, 04:04:52 AM »
Hi Frank,

I am working with an old notebook and fortunately oxygen is running even on win xp without any problem.

Oxygen is written so thriftily that it can run (with a minimum recompilation effort) even under MS Windows 95. And with the exact same blazing speed.

... modern os uses WM_MOUSEHOVER and WM_MOUSELEAVE ...

But your notebook can also use these messages and functions provided you're under XP Sp3! The lowest platform that supports them is Win2K if the latest service pack is installed.