How to change or hide cursor?

86 Views Asked by At

Hi I am developing a windowless NPAPI plugin. I am drawing the images on the plugin . Now my problem is change my cursor in windowless plugin.Please can one help me.

1

There are 1 best solutions below

0
On

How you hide a mouse cursor completely depends on the platform (operating system) you are on, NPAPI doesn't help you with that.

For windowless plugins you should be able to implement NPP_HandleEvent() and e.g. on Windows handle WM_SETCURSOR accordingly (i.e. call SetCursor()), but this question suggests that there may be issues with at least Chromes implementation.