Jump to content
  • Advertisement

Archived

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

tomwindcloud

help: show cursor when fullscreen!!

This topic is 5852 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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!