i use dthe log for the finding the flow i got like this msg when i am compiling the program i will just minimize the window. I m nutralized the maximizing the window. the

in side WM_MOVE i gave "move" as string for log into file
in side WM_PAINT i gave "paint" and for WM_BACKGNDERASE: i gave as "erase"



move
paint
paint
paint
paint
paint
move
paint
paint
erase
erase
paint

so now i got the window by default it will execute the WM_PAINT always, so as i am written my code
in WM_PAINT only so its repeats as should do. the previous data of window is erased.

please listen to my quary:[B]
when i am drawing the lines (graph) if window i minimized can i take the snapshot of bitmap, after restoring the window i want to store the bitmap. is it possible. so i m looking for like this kind of logic
but i am failing in minimizing and maximizing the window ctrl, and even i have to see hoe to store the bitmap in memory. please please help me......