Home > Software engineering > How to solve the drawing on ListControl occupies too much memory card's problem
How to solve the drawing on ListControl occupies too much memory card's problem
Time:11-26
As title, now already overloaded ListControl controls DrawItem message and to draw some graphics on them, the tracing point is GDI drawing mode, set up ListControl itself comes with a double buffer drawing method, SetExtendedStyle (LVS_EX_DOUBLEBUFFER); But when complex graphics, drawing will occupy too much memory, the issues that led to the interface card, ask how to solve this problem?
CodePudding user response:
Does not recommend the use of GDI tracing point model, addressing it make a lot of time, can according to the bitmap data populated in memory, again, according to the reference CDib class Every time to draw different content? If not, it is good to draw on the bitmap memory, draw a, multiple map using