官术网_书友最值得收藏!

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); 
} 
主站蜘蛛池模板: 开封县| 云梦县| 广灵县| 河西区| 蕲春县| 东乡族自治县| 三原县| 锡林郭勒盟| 石棉县| 河北区| 抚宁县| 太和县| 名山县| 原阳县| 蚌埠市| 弥勒县| 鄄城县| 平陆县| 揭阳市| 象州县| 习水县| 惠来县| 安陆市| 枣庄市| 黄山市| 乌海市| 西吉县| 兴隆县| 望江县| 靖州| 江油市| 麻栗坡县| 太康县| 石楼县| 哈巴河县| 禄劝| 博兴县| 长子县| 高唐县| 沙田区| 清远市|