Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Get number of displayed row in arrayctrl
Re: Get number of displayed row in arrayctrl [message #23326 is a reply to message #23325] Fri, 09 October 2009 18:29 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 1226
Registered: August 2007
Senior Contributor
If I got your question right, AFAIK there is no direct way to count the actually displayed rows.


You either need to do some calculations using arrayctrl's display position and rows' rectangle OR if your array has some child ctrls, then you might want to check their visibility state (I'm not 100% sure but this might work) and then count them.

OTOH, if you just want to retrieve the total number of rows (both visible and invisible), you can use

ArrayCtrl::GetCount()



Regards,
Oblivion


[Updated on: Fri, 09 October 2009 19:02]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Message when moving mouse over an ArrayCtrl
Next Topic: Inheriting from DropGrid
Goto Forum:
  


Current Time: Tue Aug 26 16:19:50 CEST 2025

Total time taken to generate the page: 0.05993 seconds