LISTVIEW pointer

Started by paulDiagnos, May 05, 2009, 08:48:45 AM

Previous topic - Next topic

paulDiagnos

Hi Guys,
Having a problem with mouse pointers

I change the mouse pointer to a cross when the mouse moves over a listview.

my problem is, that if the listview has a scroll bar (due to number of items) the mouse pointer will not change when hovering over the scroll bar.

is there a way around this? or is this a windows thing?

Paul




paulDiagnos

or what might be helpful is ...

anyone know how i can get the call backs for a specific vertical scroll >?
change the mouse that way:?

TechSupport

I don't know why you would not want to have the standard arrow over a scroll bar because I would think that is what most Windows users would expect.

However, you can change the cursor when the mouse moves over the non-client area of a ListView. Because FireFly already handles the subclassing for you, this is pretty damn easy.  :)


'------------------------------------------------------------------------------------------------------------------------
Function FORM1_LISTVIEW1_CUSTOM ( _
                                ControlIndex  As Long,  _  ' index in Control Array
                                hWndForm      As Dword, _  ' handle of Form
                                hWndControl   As Dword, _  ' handle of Control
                                wMsg          As Long,  _  ' type of message
                                wParam        As Dword, _  ' first message parameter
                                lParam        As Long   _  ' second message parameter
                                ) As Long


   Select Case wMsg
   
      Case %WM_NCMOUSEMOVE
         SetCursor LoadCursor(0, ByVal %IDC_CROSS)
         
   End Select
   
End Function


paulDiagnos

its actually because im returning to the old dragging and dropping.

i think il have to revamp my past code as its not working as good as i would have liked!!