OpenGL beginner, Help!

I’m new to OpenGL, just trying to learn it on my own, and my programming skills isnt very good either.
Can anyone suggest possible ways of causing an event(e.g. button click) to add an object,and another event to remove the just added object.
Something more like a method for a “add object button” and a “remove object button”

There is crazy eddy (CEGUI) for render gui elements like buttons and windows and check boxes.