Jump to content
Sign in to follow this  
t0nZ

listview with FIFO (first in firt out) logic

Recommended Posts

t0nZ

I run in a little problem, non so little for me.

I was working to create a small tcp server, and I want to have a window with a listview with the last 50 events.

50 or one hundred, no difference, but i want to put a limit.

When the server starts it reaches 50 events displayed, but after it have to delete the first item and display the event no 51 .

First in first out logic.

I have figured to do this but with my knowledge it involves to use arrays to store events and re-create all the listview for every element after the no 50, a slow procedure, both in code and in video display.

Someone have ideas for a more elegant solution ?

Thanx

Share this post


Link to post
Share on other sites
AdmiralAlkex

You can use _GUICtrlListView_DeleteItem() to delete a specific item, just don't use GUICtrlGetHandle() if you use a native control like the example shows, that is wrong.

Share this post


Link to post
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
Sign in to follow this  

×