Created main window and output device context.