Hi shabbir, good morning,

In WM_PAINT only i am drawing the grids and graph, how i have to capture the event of window while minimizing. so that i can store the bitmap(i.e., graph i am making the chart and paint to bitmap). so when i am maximizing the window i should place the bitmap in the window which i saved in memory before minimizing the window.

This is the actual problem for me i am not getting any window control to which is like WM_PAINT (this will execute every time).

I am drastically stuck with this problem as i am fresher to this programming.