• Advertisement

Archived

This topic is now archived and is closed to further replies.

How to show cursor When Fullscreen???

This topic is 5555 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know i can show cursor with m_bShowCursorWhenFullscreen is true(i use D3DApp framework ). But if i use mfc (eg, in the demo Mfcfog example), even if i set bShowCursorWhenFullscreen TRUE, i can''t display cursor when fullscreen, why?????? I think the reason is that i use MFC , but unfortunately i must use MFC, how to do it???

Share this post


Link to post
Share on other sites
Advertisement
The MFC Fog sample is coded incorrectly to make use of the D3D device cursor that the common source sample classes set up.

That''s because it uses its own fullscreen wndproc (FullScreenWndProc) to process msgs. This function does not pass the msgs to the inherited class''s MsgProc function, but directly to Window''s DefWndProc. So, the code in the CD3DApplication MsgProc that would get a D3D device cursor displayed is never called.

The easiest way to get a cursor in fullscreen mode, for this app, is to just comment out the "SetCursor( NULL );" line in the FullScreenWndProc function found in fog.cpp. This will be the hardware GDI cursor, not the D3D device cursor, but at least it''s a cursor .

Share this post


Link to post
Share on other sites

  • Advertisement