View Full Version : Refreshing window

April 28, 2006, 21:50:09

I´m showing the image that i have on buffer on my own ImageBox.
I stop drawing the image and when i minimize and maximize my dialog, the image present in the image box disappear.
The image not desappear if i continuous draw the image to the image box.

It´s possible to hold the last image draw without continuous refreshing the imagebox ?

Best regards

Stefan Geissler
May 2, 2006, 08:40:42
Hello Rui,

The image disappers, because your ImageBox control gots a WM_PAINT message and redraws it self. Thus, you should handle the WM_SIZE message in your dialog and draw the image in the image new, if you resize your window. The last image is saved in the in:
IC 3.0:

IC 2.1

You may refer to the Demoapp sample. In the ChildView.cpp is shown, how to draw the image image buffer.

May 3, 2006, 20:24:58
Hello Stefan,
I would like to thank you for the support you provide.