wgl resizing window issue

hi

i have problems when resizing my win32 window. whenever i do this, i seem to lose the wgl context. the only solution ive found is everytime the window is resized, to rebuild the context, and to reinit the opengl settings (the enables, the ortho etc) and to sharelists from the old context to new one. this is timeconsuming and as a result i have horrible flicker when resizing the window. i tried the CS_OWNDC but it doesnt seem to make any difference. does anyone know the minimal steps needed to succesfully resize a window?

thanks
james

hum, this looks very awful, some code may help. By the way this is a Windows related topic.