I am tried but no luck. Can anybody know, How to check the current cursor type is AFX_IDC_HSPLITBAR?
My code.
HCURSOR current_cursor1 = AfxGetApp () ->LoadCursor ( AFX_IDC_HSPLITBAR ) ;
CURSORINFO current_cursor_info ;
current_cursor_info.cbSize = sizeof ( CURSORINFO ) ;
if ( GetCursorInfo ( & current_cursor_info ) )
{
if ( current_cursor1 == current_cursor_info.hCursor )
{
//here not coming also if current cursor is AFX_IDC_HSPLITBAR.
}
}
I need to check other applications cursors too.
Basically I would like to hook the mouse and know which type of cursor is showing.