I am making a simple drawing program using GDI and Win32 API. It lets user to draw shapes, text etc on Window. Problem is, when window is minimized, everything that was drawn is gone. I have searched google and msdn but I had no luck. If I could save whatever that is drawn in the memory somewhere before window is minimized and then restore it later ... but I am not being able to do so. Can someone tell me how to do it? Thanks!