need help with multiple windows

i’m trying to write a program in c++ that has multple views, each defined by the same class . i don’t and will never use mfc.
creating one view works perfectly but when adding a second one the first view is getting grey and only the second one is drawn.
how can i prevent this behavior and make both render correctly

thanks for your help

Take a look on wglMakeCurrent.