Thank you dear bishop for trying to help me out.
coming to our discusion,Double buffering can be used when we have flickering problem with image loading.But in my case, i am trying to minimise or maximise a window or repaint a whole window on click of a button in the same window.The window has some images ....some field controls....and some buttons.
hope you are getting my problem definition.