opengl app resizes slowly, moves slowly, otherwise works fine

Hi all,

I have an opengl app which reacts very slowly when I try to resize the main application window, or move the main application window around my desktop. I disabled all drawing code. All that remains is picking the pixel format and setting up the render context when the window is created. If I comment that out, the app can resize smoothly etc again.

Is there anyway to get the app to behave nicely again even when I have the opengl render context created?

Are you sure there is no mistakes in your window code part ? Check msdn out