Erm tempest MinGW is a compiler, Its likely that TPT is compiled in it (C++ is all one language but setting up different compilers with big projects is a pain). From what I've seen in the TPT directory it uses SDL, as I can't see any images (yes they could be cleverly packaged) ima assume TPT just draws everything pixel by pixel (I mean the material type icons and stuff, TPT probably also uses a font library).
Everything drawn is by pixel (draw line/box functions, and those draw by pixel), and the font is custom too. The icons for menu things are in hex format in font.h
I sincerely apologize for this complete show of nubbishness but could someone either show me how you would make a piece of code to just even draw a pixel or point me to a site which has a tutorial on this?