Jump to content

listview with FIFO (first in firt out) logic

Recommended Posts

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 ?


Link to post
Share on other sites

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.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...