visual c++ - How to optimize memory with Clistctrl -


i'm using virtual listview icon view display number of images folder in hard disk. images stored in cimagelist. there provision scale image size in ui using scrollbar. performance sake drawing of each item done when nm_customdraw notification comes.

the problem when there lots of images, memory taken application much. , scaling of images not smooth. there way reduce memory usage, keeping in memory images being viewed.

the solution enable virtual mode list view. in mode, list view control doesn't host data itself; knows how many rows has. data requested on demand. makes (the application) responsible managing data displays, allows keep subset of data items in memory @ time.

instructions setting on clistctrl here on msdn.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -