Problems compiling under visual

Im very new to this open gl malarky and i have example codes I am wanting to compile and run, but after ive built the code it excutes the .exe file its created. But the file opens up a blank white window with a ‘file’ and ‘about’ menu at the top of the window but nothing inside the window.

Can anyone help me solve this problem please ???

Also I am wanting to write a simple paint program in opengl if anyone knows of some example code or tutorials they could point me in the right direction of it would be greatly appriciated.

Thanks x