help: show cursor when fullscreen!!
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???
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement