G
Guest
Hi,
I have a problem, I hope someone will help me.
I'm writing a small emulator, and as I'm working on it I want to see its
internal memory the memory is from 0000 - FFFF (WORD) so that's 65536
bytes. I'm thinking to put 16 of them in one line, so that would make 4096
lines.
Adding the elements takes a lot of time, I read that anything bigger than
1k shouldn't be implemented that way.
I read about virtual ListBox. I found tutorial how to do it in VB
(http://www.vbaccelerator.com/home/NET/Code/Controls/ListBox_and_ComboBox/VListBox/article.asp),
but looks like my knowledge is too small to do the conversion to C++.
I learned that Microsoft made it relatively easy to do it with ListView
(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=191033&SiteID=1),
but I cannot find similar methods and properties in ListBox.
While I was experimenting I managed to add DrawItemEvent and made it almost
do what I wanted, but the problem is that I can't fake the number of
elements in the list (I didn't find a way). I don't want to use the most
obvious one (adding 4096) elements because it will make the start pretty
long and will consume unnecessary memory. Also I'm pretty sure that's not
recommended practice...
Any hints?
I have a problem, I hope someone will help me.
I'm writing a small emulator, and as I'm working on it I want to see its
internal memory the memory is from 0000 - FFFF (WORD) so that's 65536
bytes. I'm thinking to put 16 of them in one line, so that would make 4096
lines.
Adding the elements takes a lot of time, I read that anything bigger than
1k shouldn't be implemented that way.
I read about virtual ListBox. I found tutorial how to do it in VB
(http://www.vbaccelerator.com/home/NET/Code/Controls/ListBox_and_ComboBox/VListBox/article.asp),
but looks like my knowledge is too small to do the conversion to C++.
I learned that Microsoft made it relatively easy to do it with ListView
(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=191033&SiteID=1),
but I cannot find similar methods and properties in ListBox.
While I was experimenting I managed to add DrawItemEvent and made it almost
do what I wanted, but the problem is that I can't fake the number of
elements in the list (I didn't find a way). I don't want to use the most
obvious one (adding 4096) elements because it will make the start pretty
long and will consume unnecessary memory. Also I'm pretty sure that's not
recommended practice...
Any hints?