How do I get an interactive Canvas?

I create a Canvas and draw some stuff on it in my C++ code. The graphs show up, but the Canvas won’t let me do the usual neat stuff like rescaling, zooming into a plot or outputting the graphs to postscript. What am I doing wrong?

You must create a TApplication object.
See examples in test programs like hworld or the Root main program