I am creating one parent window, inside that one child window.Now i am displaying an image inside child window client area.
when i launch it first time , image is displaying in correct position (In child client area).But in second launch onwards( with out closing the first instance),image is moving to screen (0,0) position.
Only thing I can think of is you have bad memory or a bad handle somewhere. I'm not sure, but if you blit to a null HDC it will blit to the desktop.... so maybe that's what happening here? Put some checks in your drawing code and make sure all the handles you're using are valid.