• Advertisement


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

help: show cursor when fullscreen!!

This topic is 5588 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 use directx8.1 and D3DApp framework in win2000. In Win32App ,if i set bShowCursorWhenFullscreen TRUE, the cursor display perfectly when fullscreen. But if i use MFC, i can''t get cursor when fullscreen. I check the resource code of D3DApp and found the question code: // Set up the fullscreen cursor if( m_bShowCursorWhenFullscreen && !m_bWindowed ) { HCURSOR hCursor; #ifdef _WIN64 hCursor = (HCURSOR)GetClassLongPtr( m_hWnd, GCLP_HCURSOR ); #else hCursor = (HCURSOR)GetClassLong( m_hWnd, GCL_HCURSOR ); #endif D3DUtil_SetDeviceCursor( m_pd3dDevice, hCursor, TRUE ); m_pd3dDevice->ShowCursor( TRUE ); } When i work with standard win32 app hCursor = (HCURSOR)GetClassLong( m_hWnd, GCL_HCURSOR ); work perfectly. But if i use mfc , the hCursor is NULL, i don''t know why???

Share this post

Link to post
Share on other sites

  • Advertisement