473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

*sigh* More missing ListView API

Unlike the better-designed tree control, the listview doesn't seem to have any functionality for returning whether or not an item is actually visible. Does anyone know what hoops I must jump through in order to workaround this limitation in what is obviously a seriously lacking API? Was the listview designed by interns? What's the deal? Why is the listview API so horrendous when the very-similar tree view control API has almost all of the functionality a programmer would expect from a professionally designed API

Word of advice from anyone planning on using a listview designed to use the listview API provided by Microsoft: Don't. Trust me, you'll save yourself a lot of time in the long run if you just design your own from scratch.
Nov 16 '05 #1
2 1214
There's:

ListView_EnsureVisible()
ListView_GetItemRect()
--
remove underscores to email

"Steve" <an*******@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
Unlike the better-designed tree control, the listview doesn't seem to have any functionality for returning whether or not an item is actually visible.
Does anyone know what hoops I must jump through in order to workaround this
limitation in what is obviously a seriously lacking API? Was the listview
designed by interns? What's the deal? Why is the listview API so
horrendous when the very-similar tree view control API has almost all of the
functionality a programmer would expect from a professionally designed API?
Word of advice from anyone planning on using a listview designed to use

the listview API provided by Microsoft: Don't. Trust me, you'll save
yourself a lot of time in the long run if you just design your own from
scratch.
Nov 16 '05 #2
ListView_EnsureVisible doesn't apply because I want to find out if an item is visible, not request that the item becomes visible

I started a workaround using ListView_GetItemRect which then compare against the rectangle of the window. Sure would be nice if Microsoft would have implemented this basic functionality into their listview instead of forcing programmers to reinvent the wheel.
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
6
by: VM | last post by:
How can I fill up a listview with text file contents? My listview has two columns and the first column fills up with a while loop: while (myString != null) { myString = sr.Readline();...
1
by: Ray Mitchell | last post by:
Hello, I'm trying to create a ListView object with several labeled columns. Using the Visual Studio Toolbox I simply drag a ListView item onto my dialog box. Then I go into the Columns...
7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
2
by: James | last post by:
I created a .Net add-in for Microsoft Excel.When the application load, all the images that will be used in the application will be loaded. I have a few forms, and some of them contain ListView...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
2
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.