Drawing A Square by clicking a Button

#1

I am a very beginner in openGL. What I need is to create a button and on clicking that I should be able to draw a square as we do in Microsoft Paint program.

#2

It’s better to first download and read OpenGL’s full tutorial on google

#3

Thank You so much for your reply. Now I am able to draw a square and zoom in , zoom out.
Can help me to this file in wxWidgets or a simple example which connects openGL and wxWidgets.
Thanks in advance