I have an openGL c++ windows class wrapper capable of switching display from fullscreen to windowed and back again based on user choice based on graphics capability. I have an intermittent glitch where the cursor hangs around in fullscreen display.
1. No wnd class cursor.
2. Used ShowCursor and tested return value to ensure ok
3. WM_SETCURSOR to explicitly set and kill cursor.
The odd thing is that it appears to work when you run the app once, but then the damned cursor appears (even when there isn't a wnd class cursor) in fullscreen display. Double-clicking on the window causes the cursor to disappear and re-enables keyboard input (tried SetForeGroundWindow, SetFocus - didn't help). The other odd thing i've noticed is that if I delay the application start with eg Sleep then the cursor disappears as it should; but then when I dynamically change the display mode the cursor re-appears at the new (fullscreen) settings!
Any and all suggestions would be very welcome. Thanks in advance.