This requires either exploring the GUI API of the OS you're working with (if you're on windows, this would be WinAPI), or getting a widget library (there are several available on the internet, FLTK, wxWidgets, and I think allegro has some widgets too). Personally I love wxWidgets, but it's a bit of work to set up and there's a learning curve.
This kind of programming is a whole other world, though, and is quite a bit more complicated.