0

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.

bala
  • 275
  • 2
  • 3
  • 13
  • 1
    I suspect that the only way might be to get the icon's 'image-bits' and compare those... – user1793036 Aug 27 '14 at 02:29
  • Which operand i need to use to compare ('&' , '|' , '^') these operands are not able to use for hcursor . – bala Aug 27 '14 at 04:04
  • I think different applications are using different comctl32 version. So,Those cursor objects are different. How to fix this ? – bala Sep 02 '14 at 03:59

0 Answers0