Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView Column Headers Click

Status
Not open for further replies.

Durandal66

Programmer
Oct 3, 2003
17
US
I have a list view that can have columns added and removed at run time. In this senes it can have anywhere between 0 and 30 columns, all user specified. Each column that is added has its header shown as well. What I need is the ability to click on the column header and display a context menu of some sort. Right now I have this working, but the problem is I need it to place the menu on the correct column header. I can calculate the x and y just fine for the first columns that are shown in the list view, but once I start to scroll off the original window, I loose that ability. I really need some way of finding out how far the list view has scrolled to the left or right, or the x location of the mouse click on the column headers. Anyone have any ideas or know where I should look?

Thanks,
-Andrew R.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top