The MainWindow function
The MainWindow
function in this application is very similar to that in Chapter 3, Building a Tetris Application; it sets the application name and creates the main document window:
#include "..\\SmallWindows\\SmallWindows.h" #include "DrawFigure.h" #include "LineFigure.h" #include "ArrowFigure.h" #include "RectangleFigure.h" #include "EllipseFigure.h" #include "TextFigure.h" #include "DrawDocument.h" void MainWindow(vector<String> /* argumentList */, WindowShow windowShow) { Application::ApplicationName() = TEXT("DrawFigure"); Application::MainWindowPtr() = new DrawDocument(windowShow); }