Jump to content

_GUICtrlListView_GetOrigin() always returns 0,0


coghlan
 Share

Recommended Posts

My 3rd-party app requires the icon of a list view item to be left-clicked to select it. I guess it ignores most other events (select etc.).

Okay, so I'm using _GUICtrlListView_GetItemRect to get the x/y in the control, but I need the window x/y for MouseClick (ControlClick has no effect on app), therefore I'd like to add the origin of the listview, i.e. x+xOrigin, y+yOrigin.

I had to get the origin via the info tool and hard-code some values, as _GUICtrlListView_GetOrigin() always returns 0,0. Shouldn't it return the origin of the control within the parent window, or could it be that there is no parent?

Other GUI functions work with the control handle, so it's just this particular function that doesn't seem to work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...