September 2016
Intermediate to advanced
588 pages
12h 22m
English
The MainWindow class is nearly identical to the versions of the previous chapters. It sets the application name to Word and returns the address of a WordDocument instance:
#include "..\\SmallWindows\\SmallWindows.h"
#include "CharInfo.h"
#include "LineInfo.h"
#include "Paragraph.h"
#include "WordDocument.h"
void MainWindow(vector<String> /* argumentList */,
WindowShow windowShow) {
Application::ApplicationName() = TEXT("Word");
Application::MainWindowPtr() = new WordDocument(windowShow);
}
Read now
Unlock full access