├── .gitattributes ├── .gitignore ├── Chapter10 └── HelloApplicationWin32API │ ├── Debug │ └── HelloApplicationWin32API.log │ ├── HelloApplicationWin32API.v12.suo │ ├── HelloApplicationWin32API.vcxproj │ ├── HelloApplicationWin32API.vcxproj.filters │ └── MainWindow.c ├── Chapter2 ├── Circle │ ├── Circle.cpp │ ├── Circle.h │ ├── Circle.vcxproj │ ├── Circle.vcxproj.filters │ ├── CircleDocument.cpp │ ├── CircleDocument.h │ ├── Debug │ │ ├── Circle.log │ │ └── CircleApplication.Build.CppClean.log │ ├── Logger.ini │ ├── MainWindow.cpp │ └── SmallWindows.ini ├── Hello │ ├── Debug │ │ ├── Hello.Build.CppClean.log │ │ ├── Hello.log │ │ ├── HelloApplication.Build.CppClean.log │ │ ├── HelloSma.CC475627.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── HelloSmallWindows.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ └── link.write.1.tlog │ │ └── HelloSmallWindows.Build.CppClean.log │ ├── Hello.vcxproj │ ├── Hello.vcxproj.filters │ ├── HelloWindow.cpp │ ├── HelloWindow.h │ └── MainWindow.cpp └── SmallWindows │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Application.cpp │ ├── Application.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── Color.cpp │ ├── Color.h │ ├── Command.cpp │ ├── Command.h │ ├── Complex.cpp │ ├── Complex.h │ ├── Controls │ ├── ButtonControl.cpp │ ├── ButtonControl.h │ ├── CheckBox.cpp │ ├── CheckBox.h │ ├── ComboBox.cpp │ ├── ComboBox.h │ ├── Control.cpp │ ├── Control.h │ ├── GroupBox.cpp │ ├── GroupBox.h │ ├── Label.cpp │ ├── Label.h │ ├── ListBox.cpp │ ├── ListBox.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MultipleListBox.cpp │ ├── MultipleListBox.h │ ├── PushButton.cpp │ ├── PushButton.h │ ├── RadioButton.cpp │ ├── RadioButton.h │ ├── TextField.cpp │ └── TextField.h │ ├── Converter.cpp │ ├── Converter.h │ ├── Cursor.cpp │ ├── Cursor.h │ ├── Dialog.cpp │ ├── Dialog.h │ ├── Document.cpp │ ├── Document.h │ ├── DynamicList.cpp │ ├── DynamicList.h │ ├── Font.cpp │ ├── Font.h │ ├── FontDialog.cpp │ ├── FontDialog.h │ ├── Graphics.cpp │ ├── Graphics.h │ ├── InfoList.cpp │ ├── InfoList.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MainWindow.h │ ├── Matrix.cpp │ ├── Matrix.h │ ├── Menu.cpp │ ├── Menu.h │ ├── PageSetupDialog.cpp │ ├── PageSetupDialog.h │ ├── PageSetupInfo.cpp │ ├── PageSetupInfo.h │ ├── Point.cpp │ ├── Point.h │ ├── PrintPreviewDocument.cpp │ ├── PrintPreviewDocument.h │ ├── Rational.cpp │ ├── Rational.h │ ├── Rect.cpp │ ├── Rect.h │ ├── Reference.cpp │ ├── Reference.h │ ├── Registry.cpp │ ├── Registry.h │ ├── Size.cpp │ ├── Size.h │ ├── SmallWindows.cpp │ ├── SmallWindows.h │ ├── StandardDialog.cpp │ ├── StandardDialog.h │ ├── StandardDocument.cpp │ ├── StandardDocument.h │ ├── String.cpp │ ├── String.h │ ├── Template.cpp │ ├── Template.h │ ├── Tree.cpp │ ├── Tree.h │ ├── WinMain.cpp │ ├── Window.cpp │ └── Window.h ├── Chapter3 ├── SmallWindows │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Application.cpp │ ├── Application.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── Color.cpp │ ├── Color.h │ ├── Command.cpp │ ├── Command.h │ ├── Complex.cpp │ ├── Complex.h │ ├── Controls │ │ ├── ButtonControl.cpp │ │ ├── ButtonControl.h │ │ ├── CheckBox.cpp │ │ ├── CheckBox.h │ │ ├── ComboBox.cpp │ │ ├── ComboBox.h │ │ ├── Control.cpp │ │ ├── Control.h │ │ ├── GroupBox.cpp │ │ ├── GroupBox.h │ │ ├── Label.cpp │ │ ├── Label.h │ │ ├── ListBox.cpp │ │ ├── ListBox.h │ │ ├── ListControl.cpp │ │ ├── ListControl.h │ │ ├── MultipleListBox.cpp │ │ ├── MultipleListBox.h │ │ ├── PushButton.cpp │ │ ├── PushButton.h │ │ ├── RadioButton.cpp │ │ ├── RadioButton.h │ │ ├── TextField.cpp │ │ └── TextField.h │ ├── Converter.cpp │ ├── Converter.h │ ├── Cursor.cpp │ ├── Cursor.h │ ├── Dialog.cpp │ ├── Dialog.h │ ├── Document.cpp │ ├── Document.h │ ├── DynamicList.cpp │ ├── DynamicList.h │ ├── Font.cpp │ ├── Font.h │ ├── FontDialog.cpp │ ├── FontDialog.h │ ├── Graphics.cpp │ ├── Graphics.h │ ├── InfoList.cpp │ ├── InfoList.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MainWindow.h │ ├── Matrix.cpp │ ├── Matrix.h │ ├── Menu.cpp │ ├── Menu.h │ ├── PageSetupDialog.cpp │ ├── PageSetupDialog.h │ ├── PageSetupInfo.cpp │ ├── PageSetupInfo.h │ ├── Point.cpp │ ├── Point.h │ ├── PrintPreviewDocument.cpp │ ├── PrintPreviewDocument.h │ ├── Rational.cpp │ ├── Rational.h │ ├── Rect.cpp │ ├── Rect.h │ ├── Reference.cpp │ ├── Reference.h │ ├── Registry.cpp │ ├── Registry.h │ ├── Size.cpp │ ├── Size.h │ ├── SmallWindows.cpp │ ├── SmallWindows.h │ ├── StandardDialog.cpp │ ├── StandardDialog.h │ ├── StandardDocument.cpp │ ├── StandardDocument.h │ ├── String.cpp │ ├── String.h │ ├── Template.cpp │ ├── Template.h │ ├── Tree.cpp │ ├── Tree.h │ ├── WinMain.cpp │ ├── Window.cpp │ └── Window.h └── Tetris │ ├── BlueFigure.cpp │ ├── BlueFigure.h │ ├── BrownFigure.cpp │ ├── BrownFigure.h │ ├── Debug │ ├── BuildLog.htm │ ├── Tetris (STEFANB's conflicted copy 2011-11-28).log │ ├── Tetris.Build.CppClean.log │ ├── Tetris.lastbuildstate │ ├── Tetris.log │ ├── TetrisApplication.Build.CppClean.log │ ├── TetrisGame.Build.CppClean.log │ └── TetrisGame.tlog │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── TetrisGame.lastbuildstate │ │ ├── cl.command.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ └── link.write.1.tlog │ ├── GameGrid.cpp │ ├── GameGrid.h │ ├── GreenFigure.cpp │ ├── GreenFigure.h │ ├── Logg │ ├── MainWindow.cpp │ ├── PurpleFigure.cpp │ ├── PurpleFigure.h │ ├── RedFigure.cpp │ ├── RedFigure.h │ ├── Release │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── ColorGrid.obj │ ├── Figure.obj │ ├── Tetris.exe.intermediate.manifest │ ├── Tetris.lastbuildstate │ ├── Tetris.log │ ├── Tetris.obj │ ├── cl.command.1.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ ├── mt.command.1.tlog │ ├── mt.read.1.tlog │ ├── mt.write.1.tlog │ └── vc100.pdb │ ├── Resource.h │ ├── ScoreList.bin │ ├── Tetris.aps │ ├── Tetris.rc │ ├── Tetris.vcproj.ComputerStefan.Stefan.user │ ├── Tetris.vcxproj │ ├── Tetris.vcxproj.filters │ ├── TetrisFigure.cpp │ ├── TetrisFigure.h │ ├── TetrisWindow.cpp │ ├── TetrisWindow.h │ ├── TurquoiseFigure.cpp │ ├── TurquoiseFigure.h │ ├── YellowFigure.cpp │ ├── YellowFigure.h │ └── res │ ├── Tetris.ico │ ├── Tetris.rc2 │ ├── TetrisDoc.ico │ └── Toolbar.bmp ├── Chapter4 ├── Draw │ ├── ArrowFigure.cpp │ ├── ArrowFigure.h │ ├── CalcApplication.cpp │ ├── Cursor.h │ ├── Debug │ │ ├── BuildLog.htm │ │ ├── Draw (STEFANB's conflicted copy 2011-11-28).log │ │ ├── Draw.Build.CppClean.log │ │ ├── Draw.lastbuildstate │ │ ├── Draw.log │ │ ├── DrawApplication.Build.CppClean.log │ │ ├── DrawingProgram.Build.CppClean.log │ │ └── DrawingProgram.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── DrawingProgram.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ ├── Draw.aps │ ├── Draw.rc │ ├── Draw.vcxproj │ ├── Draw.vcxproj.filters │ ├── DrawDocument.cpp │ ├── DrawDocument.h │ ├── DrawFigure.cpp │ ├── DrawFigure.h │ ├── EllipseFigure.cpp │ ├── EllipseFigure.h │ ├── LineFigure.cpp │ ├── LineFigure.h │ ├── MainWindow.cpp │ ├── RectangleFigure.cpp │ ├── RectangleFigure.h │ ├── Release │ │ ├── Arrow.obj │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── Command.obj │ │ ├── Draw.exe.intermediate.manifest │ │ ├── Draw.lastbuildstate │ │ ├── Draw.log │ │ ├── Draw.obj │ │ ├── Draw.res │ │ ├── Ellipse.obj │ │ ├── Figure.obj │ │ ├── File.obj │ │ ├── Keyboard.obj │ │ ├── Line.obj │ │ ├── List.obj │ │ ├── Rectangle.obj │ │ ├── Text.obj │ │ ├── Unit.obj │ │ ├── UnitScroll.obj │ │ ├── cl.command.1.tlog │ │ ├── link-cvtres.read.1.tlog │ │ ├── link-cvtres.write.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ ├── mt.command.1.tlog │ │ ├── mt.read.1.tlog │ │ ├── mt.write.1.tlog │ │ ├── rc.command.1.tlog │ │ ├── rc.read.1.tlog │ │ ├── rc.write.1.tlog │ │ └── vc100.pdb │ ├── Resource.h │ ├── SmallWindows.ini │ ├── res │ │ ├── Draw.ico │ │ ├── Draw.rc2 │ │ ├── DrawDoc.ico │ │ └── Toolbar.bmp │ └── resource1.h └── SmallWindows │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Application.cpp │ ├── Application.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── Color.cpp │ ├── Color.h │ ├── Command.cpp │ ├── Command.h │ ├── Complex.cpp │ ├── Complex.h │ ├── Controls │ ├── ButtonControl.cpp │ ├── ButtonControl.h │ ├── CheckBox.cpp │ ├── CheckBox.h │ ├── ComboBox.cpp │ ├── ComboBox.h │ ├── Control.cpp │ ├── Control.h │ ├── GroupBox.cpp │ ├── GroupBox.h │ ├── Label.cpp │ ├── Label.h │ ├── ListBox.cpp │ ├── ListBox.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MultipleListBox.cpp │ ├── MultipleListBox.h │ ├── PushButton.cpp │ ├── PushButton.h │ ├── RadioButton.cpp │ ├── RadioButton.h │ ├── TextField.cpp │ └── TextField.h │ ├── Converter.cpp │ ├── Converter.h │ ├── Cursor.cpp │ ├── Cursor.h │ ├── Dialog.cpp │ ├── Dialog.h │ ├── Document.cpp │ ├── Document.h │ ├── DynamicList.cpp │ ├── DynamicList.h │ ├── Font.cpp │ ├── Font.h │ ├── FontDialog.cpp │ ├── FontDialog.h │ ├── Graphics.cpp │ ├── Graphics.h │ ├── InfoList.cpp │ ├── InfoList.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MainWindow.h │ ├── Matrix.cpp │ ├── Matrix.h │ ├── Menu.cpp │ ├── Menu.h │ ├── PageSetupDialog.cpp │ ├── PageSetupDialog.h │ ├── PageSetupInfo.cpp │ ├── PageSetupInfo.h │ ├── Point.cpp │ ├── Point.h │ ├── PrintPreviewDocument.cpp │ ├── PrintPreviewDocument.h │ ├── Rational.cpp │ ├── Rational.h │ ├── Rect.cpp │ ├── Rect.h │ ├── Reference.cpp │ ├── Reference.h │ ├── Registry.cpp │ ├── Registry.h │ ├── Size.cpp │ ├── Size.h │ ├── SmallWindows.cpp │ ├── SmallWindows.h │ ├── StandardDialog.cpp │ ├── StandardDialog.h │ ├── StandardDocument.cpp │ ├── StandardDocument.h │ ├── String.cpp │ ├── String.h │ ├── Template.cpp │ ├── Template.h │ ├── Tree.cpp │ ├── Tree.h │ ├── WinMain.cpp │ ├── Window.cpp │ └── Window.h ├── Chapter6 ├── SmallWindows │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Application.cpp │ ├── Application.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── Color.cpp │ ├── Color.h │ ├── Command.cpp │ ├── Command.h │ ├── Complex.cpp │ ├── Complex.h │ ├── Controls │ │ ├── ButtonControl.cpp │ │ ├── ButtonControl.h │ │ ├── CheckBox.cpp │ │ ├── CheckBox.h │ │ ├── ComboBox.cpp │ │ ├── ComboBox.h │ │ ├── Control.cpp │ │ ├── Control.h │ │ ├── GroupBox.cpp │ │ ├── GroupBox.h │ │ ├── Label.cpp │ │ ├── Label.h │ │ ├── ListBox.cpp │ │ ├── ListBox.h │ │ ├── ListControl.cpp │ │ ├── ListControl.h │ │ ├── MultipleListBox.cpp │ │ ├── MultipleListBox.h │ │ ├── PushButton.cpp │ │ ├── PushButton.h │ │ ├── RadioButton.cpp │ │ ├── RadioButton.h │ │ ├── TextField.cpp │ │ └── TextField.h │ ├── Converter.cpp │ ├── Converter.h │ ├── Cursor.cpp │ ├── Cursor.h │ ├── Dialog.cpp │ ├── Dialog.h │ ├── Document.cpp │ ├── Document.h │ ├── DynamicList.cpp │ ├── DynamicList.h │ ├── Font.cpp │ ├── Font.h │ ├── FontDialog.cpp │ ├── FontDialog.h │ ├── Graphics.cpp │ ├── Graphics.h │ ├── InfoList.cpp │ ├── InfoList.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MainWindow.h │ ├── Matrix.cpp │ ├── Matrix.h │ ├── Menu.cpp │ ├── Menu.h │ ├── PageSetupDialog.cpp │ ├── PageSetupDialog.h │ ├── PageSetupInfo.cpp │ ├── PageSetupInfo.h │ ├── Point.cpp │ ├── Point.h │ ├── PrintPreviewDocument.cpp │ ├── PrintPreviewDocument.h │ ├── Rational.cpp │ ├── Rational.h │ ├── Rect.cpp │ ├── Rect.h │ ├── Reference.cpp │ ├── Reference.h │ ├── Registry.cpp │ ├── Registry.h │ ├── Size.cpp │ ├── Size.h │ ├── SmallWindows.cpp │ ├── SmallWindows.h │ ├── StandardDialog.cpp │ ├── StandardDialog.h │ ├── StandardDocument.cpp │ ├── StandardDocument.h │ ├── String.cpp │ ├── String.h │ ├── Template.cpp │ ├── Template.h │ ├── Tree.cpp │ ├── Tree.h │ ├── WinMain.cpp │ ├── Window.cpp │ └── Window.h └── Word │ ├── Calculate.h │ ├── Calculate2.cpp │ ├── CalculateZoom.c │ ├── CalculateZoom.h │ ├── CharInfo.cpp │ ├── CharInfo.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── ClipboardUntil.c │ ├── Command.h │ ├── Debug │ ├── BuildLog.htm │ ├── Word (STEFANB's conflicted copy 2011-11-28).log │ ├── Word (STEFANB's conflicted copy 2012-03-08).log │ ├── Word.Build.CppClean.log │ ├── Word.lastbuildstate │ ├── Word.log │ ├── WordProcessor.Build.CppClean.log │ └── WordProcessor.tlog │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── WordProcessor.lastbuildstate │ │ ├── cl.command.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ ├── rc.command.1.tlog │ │ ├── rc.read.1.tlog │ │ └── rc.write.1.tlog │ ├── Header.xlsx │ ├── InfoList.c │ ├── Keyboard.h │ ├── LineInfo.cpp │ ├── LineInfo.h │ ├── MainWindow.cpp │ ├── MenuAccelarator.rc │ ├── PageInfo.cpp │ ├── PageInfo.h │ ├── Paragraph.cpp │ ├── Paragraph.h │ ├── ParagraphX.cpp │ ├── ParagraphX.h │ ├── Position.cpp │ ├── Position.h │ ├── Print.cpp │ ├── Print.h │ ├── PrintDialog.cpp │ ├── PrintDialog.h │ ├── PrintMessageDialog.cpp │ ├── PrintMessageDialog.h │ ├── PrintProgressDialog.rc │ ├── PrintSetupDialog.rc │ ├── PrintSetupDialog2.cpp │ ├── PrintSetupDialog2.h │ ├── Release │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── Calculate.obj │ ├── Clipboard.obj │ ├── Command.obj │ ├── Keyboard.obj │ ├── List.obj │ ├── MenuAccelarator.res │ ├── Paragraph.obj │ ├── Position.obj │ ├── Print.obj │ ├── PrintPreview.obj │ ├── PrintProgressDialog.res │ ├── PrintSetupDialog.obj │ ├── PrintSetupDialog.res │ ├── Set.obj │ ├── Template.obj │ ├── Unit.obj │ ├── UnitScroll.obj │ ├── UnitScrollZoom.obj │ ├── Word.exe.intermediate.manifest │ ├── Word.lastbuildstate │ ├── Word.log │ ├── Word.obj │ ├── cl.command.1.tlog │ ├── link-cvtres.read.1.tlog │ ├── link-cvtres.write.1.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ ├── mt.command.1.tlog │ ├── mt.read.1.tlog │ ├── mt.write.1.tlog │ ├── rc.command.1.tlog │ ├── rc.read.1.tlog │ ├── rc.write.1.tlog │ └── vc100.pdb │ ├── Resource.h │ ├── Setup.xlsx │ ├── SmallWindows.ini │ ├── UnitScrollZoom.c │ ├── UnitScrollZoom.h │ ├── Word.aps │ ├── Word.docx │ ├── Word.h │ ├── Word.vcxproj │ ├── Word.vcxproj.filters │ ├── WordApplication.cpp │ ├── WordCalculate.cpp │ ├── WordCommand.cpp │ ├── WordDocument.cpp │ ├── WordDocument.h │ ├── WordDocument2.cpp │ ├── WordKeyboard.cpp │ └── res │ ├── Toolbar.bmp │ ├── Word.ico │ ├── Word.manifest │ ├── Word.rc2 │ └── WordDoc.ico ├── Chapter8 ├── Calc │ ├── Calc.aps │ ├── Calc.rc │ ├── Calc.vcxproj │ ├── Calc.vcxproj.filters │ ├── CalcCommand.cpp │ ├── CalcDocument.cpp │ ├── CalcDocument.h │ ├── CalcEvaluate.cpp │ ├── CalcKeyboard.cpp │ ├── Cell.cpp │ ├── Cell.h │ ├── Command.h │ ├── Debug │ │ ├── BuildLog.htm │ │ ├── Calc (STEFANB's conflicted copy 2011-11-28).log │ │ ├── Calc (STEFANB's conflicted copy 2012-03-08).log │ │ ├── Calc.Build.CppClean.log │ │ ├── Calc.lastbuildstate │ │ ├── Calc.log │ │ ├── CalcApplication.Build.CppClean.log │ │ ├── SpreadAp.E96A6170.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── SpreadApplication.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ │ ├── SpreadApplication.Build.CppClean.log │ │ ├── SpreadSh.E96A6170.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── SpreadSheetProgram.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ │ └── SpreadSheetProgram.Build.CppClean.log │ ├── Error.cpp │ ├── Error.h │ ├── Keyboard.h │ ├── MainWindow.cpp │ ├── Parser.cpp │ ├── Parser.h │ ├── Release │ │ ├── BTree.obj │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── Calc.exe.intermediate.manifest │ │ ├── Calc.lastbuildstate │ │ ├── Calc.log │ │ ├── Calc.obj │ │ ├── Calc.res │ │ ├── Cell.obj │ │ ├── Command.obj │ │ ├── Error.obj │ │ ├── Keyboard.obj │ │ ├── List.obj │ │ ├── Matrix.obj │ │ ├── Parser.obj │ │ ├── Reference.obj │ │ ├── Scanner.obj │ │ ├── Set.obj │ │ ├── TSetMatrix.obj │ │ ├── Unit.obj │ │ ├── UnitScroll.obj │ │ ├── cl.command.1.tlog │ │ ├── link-cvtres.read.1.tlog │ │ ├── link-cvtres.write.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ ├── mt.command.1.tlog │ │ ├── mt.read.1.tlog │ │ ├── mt.write.1.tlog │ │ ├── rc.command.1.tlog │ │ ├── rc.read.1.tlog │ │ ├── rc.write.1.tlog │ │ └── vc100.pdb │ ├── Resource.h │ ├── Scanner.cpp │ ├── Scanner.h │ ├── SmallWindows.ini │ ├── Token.cpp │ ├── Token.h │ ├── TreeNode.cpp │ ├── TreeNode.h │ ├── Triple.cpp │ ├── Triple.h │ └── res │ │ ├── Calc.ico │ │ ├── Calc.manifest │ │ ├── Calc.rc2 │ │ ├── CalcDoc.ico │ │ ├── Toolbar.bmp │ │ ├── Word.ico │ │ ├── WordDoc.ico │ │ ├── idr_calc.ico │ │ └── idr_main.ico └── SmallWindows │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Application.cpp │ ├── Application.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── Color.cpp │ ├── Color.h │ ├── Command.cpp │ ├── Command.h │ ├── Complex.cpp │ ├── Complex.h │ ├── Controls │ ├── ButtonControl.cpp │ ├── ButtonControl.h │ ├── CheckBox.cpp │ ├── CheckBox.h │ ├── ComboBox.cpp │ ├── ComboBox.h │ ├── Control.cpp │ ├── Control.h │ ├── GroupBox.cpp │ ├── GroupBox.h │ ├── Label.cpp │ ├── Label.h │ ├── ListBox.cpp │ ├── ListBox.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MultipleListBox.cpp │ ├── MultipleListBox.h │ ├── PushButton.cpp │ ├── PushButton.h │ ├── RadioButton.cpp │ ├── RadioButton.h │ ├── TextField.cpp │ └── TextField.h │ ├── Converter.cpp │ ├── Converter.h │ ├── Cursor.cpp │ ├── Cursor.h │ ├── Dialog.cpp │ ├── Dialog.h │ ├── Document.cpp │ ├── Document.h │ ├── DynamicList.cpp │ ├── DynamicList.h │ ├── Font.cpp │ ├── Font.h │ ├── FontDialog.cpp │ ├── FontDialog.h │ ├── Graphics.cpp │ ├── Graphics.h │ ├── InfoList.cpp │ ├── InfoList.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MainWindow.h │ ├── Matrix.cpp │ ├── Matrix.h │ ├── Menu.cpp │ ├── Menu.h │ ├── PageSetupDialog.cpp │ ├── PageSetupDialog.h │ ├── PageSetupInfo.cpp │ ├── PageSetupInfo.h │ ├── Point.cpp │ ├── Point.h │ ├── PrintPreviewDocument.cpp │ ├── PrintPreviewDocument.h │ ├── Rational.cpp │ ├── Rational.h │ ├── Rect.cpp │ ├── Rect.h │ ├── Reference.cpp │ ├── Reference.h │ ├── Registry.cpp │ ├── Registry.h │ ├── Size.cpp │ ├── Size.h │ ├── SmallWindows.cpp │ ├── SmallWindows.h │ ├── StandardDialog.cpp │ ├── StandardDialog.h │ ├── StandardDocument.cpp │ ├── StandardDocument.h │ ├── String.cpp │ ├── String.h │ ├── Template.cpp │ ├── Template.h │ ├── Tree.cpp │ ├── Tree.h │ ├── WinMain.cpp │ ├── Window.cpp │ └── Window.h ├── Cpp Windows Programming ├── C++ Windows Programming.sln ├── C++ Windows Programming.v12.suo ├── Calc │ ├── Calc.aps │ ├── Calc.rc │ ├── Calc.vcxproj │ ├── Calc.vcxproj.filters │ ├── CalcCommand.cpp │ ├── CalcDocument.cpp │ ├── CalcDocument.h │ ├── CalcEvaluate.cpp │ ├── CalcKeyboard.cpp │ ├── Cell.cpp │ ├── Cell.h │ ├── Command.h │ ├── Debug │ │ ├── BuildLog.htm │ │ ├── Calc (STEFANB's conflicted copy 2011-11-28).log │ │ ├── Calc (STEFANB's conflicted copy 2012-03-08).log │ │ ├── Calc.Build.CppClean.log │ │ ├── Calc.lastbuildstate │ │ ├── Calc.log │ │ ├── SpreadAp.E96A6170.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── SpreadApplication.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ │ ├── SpreadApplication.Build.CppClean.log │ │ ├── SpreadSh.E96A6170.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── SpreadSheetProgram.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ │ └── SpreadSheetProgram.Build.CppClean.log │ ├── Error.cpp │ ├── Error.h │ ├── Keyboard.h │ ├── MainWindow.cpp │ ├── Parser.cpp │ ├── Parser.h │ ├── Release │ │ ├── BTree.obj │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── Calc.exe.intermediate.manifest │ │ ├── Calc.lastbuildstate │ │ ├── Calc.log │ │ ├── Calc.obj │ │ ├── Calc.res │ │ ├── Cell.obj │ │ ├── Command.obj │ │ ├── Error.obj │ │ ├── Keyboard.obj │ │ ├── List.obj │ │ ├── Matrix.obj │ │ ├── Parser.obj │ │ ├── Reference.obj │ │ ├── Scanner.obj │ │ ├── Set.obj │ │ ├── TSetMatrix.obj │ │ ├── Unit.obj │ │ ├── UnitScroll.obj │ │ ├── cl.command.1.tlog │ │ ├── link-cvtres.read.1.tlog │ │ ├── link-cvtres.write.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ ├── mt.command.1.tlog │ │ ├── mt.read.1.tlog │ │ ├── mt.write.1.tlog │ │ ├── rc.command.1.tlog │ │ ├── rc.read.1.tlog │ │ ├── rc.write.1.tlog │ │ └── vc100.pdb │ ├── Resource.h │ ├── Scanner.cpp │ ├── Scanner.h │ ├── SmallWindows.ini │ ├── Token.cpp │ ├── Token.h │ ├── TreeNode.cpp │ ├── TreeNode.h │ ├── Triple.cpp │ ├── Triple.h │ └── res │ │ ├── Calc.ico │ │ ├── Calc.manifest │ │ ├── Calc.rc2 │ │ ├── CalcDoc.ico │ │ ├── Toolbar.bmp │ │ ├── Word.ico │ │ ├── WordDoc.ico │ │ ├── idr_calc.ico │ │ └── idr_main.ico ├── Circle │ ├── Circle.cpp │ ├── Circle.h │ ├── Circle.vcxproj │ ├── Circle.vcxproj.filters │ ├── CircleDocument.cpp │ ├── CircleDocument.h │ ├── Debug │ │ └── Circle.log │ ├── Logger.ini │ ├── MainWindow.cpp │ └── SmallWindows.ini ├── Draw │ ├── ArrowFigure.cpp │ ├── ArrowFigure.h │ ├── CalcApplication.cpp │ ├── Cursor.h │ ├── Debug │ │ ├── BuildLog.htm │ │ ├── Draw (STEFANB's conflicted copy 2011-11-28).log │ │ ├── Draw.Build.CppClean.log │ │ ├── Draw.lastbuildstate │ │ ├── Draw.log │ │ ├── DrawingProgram.Build.CppClean.log │ │ └── DrawingProgram.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── DrawingProgram.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ ├── link.write.1.tlog │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ ├── Draw.aps │ ├── Draw.rc │ ├── Draw.vcxproj │ ├── Draw.vcxproj.filters │ ├── DrawDocument.cpp │ ├── DrawDocument.h │ ├── DrawFigure.cpp │ ├── DrawFigure.h │ ├── EllipseFigure.cpp │ ├── EllipseFigure.h │ ├── LineFigure.cpp │ ├── LineFigure.h │ ├── MainWindow.cpp │ ├── RectangleFigure.cpp │ ├── RectangleFigure.h │ ├── Release │ │ ├── Arrow.obj │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── Command.obj │ │ ├── Draw.exe.intermediate.manifest │ │ ├── Draw.lastbuildstate │ │ ├── Draw.log │ │ ├── Draw.obj │ │ ├── Draw.res │ │ ├── Ellipse.obj │ │ ├── Figure.obj │ │ ├── File.obj │ │ ├── Keyboard.obj │ │ ├── Line.obj │ │ ├── List.obj │ │ ├── Rectangle.obj │ │ ├── Text.obj │ │ ├── Unit.obj │ │ ├── UnitScroll.obj │ │ ├── cl.command.1.tlog │ │ ├── link-cvtres.read.1.tlog │ │ ├── link-cvtres.write.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ ├── mt.command.1.tlog │ │ ├── mt.read.1.tlog │ │ ├── mt.write.1.tlog │ │ ├── rc.command.1.tlog │ │ ├── rc.read.1.tlog │ │ ├── rc.write.1.tlog │ │ └── vc100.pdb │ ├── Resource.h │ ├── SmallWindows.ini │ ├── res │ │ ├── Draw.ico │ │ ├── Draw.rc2 │ │ ├── DrawDoc.ico │ │ └── Toolbar.bmp │ └── resource1.h ├── Hello │ ├── Debug │ │ ├── Hello.Build.CppClean.log │ │ ├── Hello.log │ │ ├── HelloSma.CC475627.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── HelloSmallWindows.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ └── link.write.1.tlog │ │ └── HelloSmallWindows.Build.CppClean.log │ ├── Hello.vcxproj │ ├── Hello.vcxproj.filters │ ├── HelloWindow.cpp │ ├── HelloWindow.h │ └── MainWindow.cpp ├── HelloApplicationWin32API │ ├── Debug │ │ ├── HelloApplicationWin32API.Build.CppClean.log │ │ └── HelloApplicationWin32API.log │ ├── HelloApplicationWin32API.vcxproj │ ├── HelloApplicationWin32API.vcxproj.filters │ └── MainWindow.c ├── SmallWindows │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Application.cpp │ ├── Application.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── Color.cpp │ ├── Color.h │ ├── Command.cpp │ ├── Command.h │ ├── Complex.cpp │ ├── Complex.h │ ├── Controls │ │ ├── ButtonControl.cpp │ │ ├── ButtonControl.h │ │ ├── CheckBox.cpp │ │ ├── CheckBox.h │ │ ├── ComboBox.cpp │ │ ├── ComboBox.h │ │ ├── Control.cpp │ │ ├── Control.h │ │ ├── GroupBox.cpp │ │ ├── GroupBox.h │ │ ├── Label.cpp │ │ ├── Label.h │ │ ├── ListBox.cpp │ │ ├── ListBox.h │ │ ├── ListControl.cpp │ │ ├── ListControl.h │ │ ├── MultipleListBox.cpp │ │ ├── MultipleListBox.h │ │ ├── PushButton.cpp │ │ ├── PushButton.h │ │ ├── RadioButton.cpp │ │ ├── RadioButton.h │ │ ├── TextField.cpp │ │ └── TextField.h │ ├── Converter.cpp │ ├── Converter.h │ ├── Cursor.cpp │ ├── Cursor.h │ ├── Dialog.cpp │ ├── Dialog.h │ ├── Document.cpp │ ├── Document.h │ ├── DynamicList.cpp │ ├── DynamicList.h │ ├── Font.cpp │ ├── Font.h │ ├── FontDialog.cpp │ ├── FontDialog.h │ ├── Graphics.cpp │ ├── Graphics.h │ ├── InfoList.cpp │ ├── InfoList.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MainWindow.h │ ├── Matrix.cpp │ ├── Matrix.h │ ├── Menu.cpp │ ├── Menu.h │ ├── PageSetupDialog.cpp │ ├── PageSetupDialog.h │ ├── PageSetupInfo.cpp │ ├── PageSetupInfo.h │ ├── Point.cpp │ ├── Point.h │ ├── PrintPreviewDocument.cpp │ ├── PrintPreviewDocument.h │ ├── Rational.cpp │ ├── Rational.h │ ├── Rect.cpp │ ├── Rect.h │ ├── Reference.cpp │ ├── Reference.h │ ├── Registry.cpp │ ├── Registry.h │ ├── Size.cpp │ ├── Size.h │ ├── SmallWindows.cpp │ ├── SmallWindows.h │ ├── StandardDialog.cpp │ ├── StandardDialog.h │ ├── StandardDocument.cpp │ ├── StandardDocument.h │ ├── String.cpp │ ├── String.h │ ├── Template.cpp │ ├── Template.h │ ├── Tree.cpp │ ├── Tree.h │ ├── WinMain.cpp │ ├── Window.cpp │ └── Window.h ├── Tetris │ ├── BlueFigure.cpp │ ├── BlueFigure.h │ ├── BrownFigure.cpp │ ├── BrownFigure.h │ ├── Debug │ │ ├── BuildLog.htm │ │ ├── Tetris (STEFANB's conflicted copy 2011-11-28).log │ │ ├── Tetris.Build.CppClean.log │ │ ├── Tetris.lastbuildstate │ │ ├── Tetris.log │ │ ├── TetrisGame.Build.CppClean.log │ │ └── TetrisGame.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── TetrisGame.lastbuildstate │ │ │ ├── cl.command.1.tlog │ │ │ ├── link.command.1.tlog │ │ │ ├── link.read.1.tlog │ │ │ └── link.write.1.tlog │ ├── GameGrid.cpp │ ├── GameGrid.h │ ├── GreenFigure.cpp │ ├── GreenFigure.h │ ├── Logg │ ├── MainWindow.cpp │ ├── PurpleFigure.cpp │ ├── PurpleFigure.h │ ├── RedFigure.cpp │ ├── RedFigure.h │ ├── Release │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── ColorGrid.obj │ │ ├── Figure.obj │ │ ├── Tetris.exe.intermediate.manifest │ │ ├── Tetris.lastbuildstate │ │ ├── Tetris.log │ │ ├── Tetris.obj │ │ ├── cl.command.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ ├── mt.command.1.tlog │ │ ├── mt.read.1.tlog │ │ ├── mt.write.1.tlog │ │ └── vc100.pdb │ ├── Resource.h │ ├── ScoreList.bin │ ├── Tetris.aps │ ├── Tetris.rc │ ├── Tetris.vcproj.ComputerStefan.Stefan.user │ ├── Tetris.vcxproj │ ├── Tetris.vcxproj.filters │ ├── TetrisFigure.cpp │ ├── TetrisFigure.h │ ├── TetrisWindow.cpp │ ├── TetrisWindow.h │ ├── TurquoiseFigure.cpp │ ├── TurquoiseFigure.h │ ├── YellowFigure.cpp │ ├── YellowFigure.h │ └── res │ │ ├── Tetris.ico │ │ ├── Tetris.rc2 │ │ ├── TetrisDoc.ico │ │ └── Toolbar.bmp └── Word │ ├── Calculate.h │ ├── Calculate2.cpp │ ├── CalculateZoom.c │ ├── CalculateZoom.h │ ├── CharInfo.cpp │ ├── CharInfo.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── ClipboardUntil.c │ ├── Command.h │ ├── Debug │ ├── BuildLog.htm │ ├── Word (STEFANB's conflicted copy 2011-11-28).log │ ├── Word (STEFANB's conflicted copy 2012-03-08).log │ ├── Word.Build.CppClean.log │ ├── Word.lastbuildstate │ ├── Word.log │ ├── WordProcessor.Build.CppClean.log │ └── WordProcessor.tlog │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── WordProcessor.lastbuildstate │ │ ├── cl.command.1.tlog │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ ├── link.write.1.tlog │ │ ├── rc.command.1.tlog │ │ ├── rc.read.1.tlog │ │ └── rc.write.1.tlog │ ├── Header.xlsx │ ├── InfoList.c │ ├── Keyboard.h │ ├── LineInfo.cpp │ ├── LineInfo.h │ ├── MainWindow.cpp │ ├── MenuAccelarator.rc │ ├── PageInfo.cpp │ ├── PageInfo.h │ ├── Paragraph.cpp │ ├── Paragraph.h │ ├── ParagraphX.cpp │ ├── ParagraphX.h │ ├── Position.cpp │ ├── Position.h │ ├── Print.cpp │ ├── Print.h │ ├── PrintDialog.cpp │ ├── PrintDialog.h │ ├── PrintMessageDialog.cpp │ ├── PrintMessageDialog.h │ ├── PrintProgressDialog.rc │ ├── PrintSetupDialog.rc │ ├── PrintSetupDialog2.cpp │ ├── PrintSetupDialog2.h │ ├── Release │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── Calculate.obj │ ├── Clipboard.obj │ ├── Command.obj │ ├── Keyboard.obj │ ├── List.obj │ ├── MenuAccelarator.res │ ├── Paragraph.obj │ ├── Position.obj │ ├── Print.obj │ ├── PrintPreview.obj │ ├── PrintProgressDialog.res │ ├── PrintSetupDialog.obj │ ├── PrintSetupDialog.res │ ├── Set.obj │ ├── Template.obj │ ├── Unit.obj │ ├── UnitScroll.obj │ ├── UnitScrollZoom.obj │ ├── Word.exe.intermediate.manifest │ ├── Word.lastbuildstate │ ├── Word.log │ ├── Word.obj │ ├── cl.command.1.tlog │ ├── link-cvtres.read.1.tlog │ ├── link-cvtres.write.1.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ ├── mt.command.1.tlog │ ├── mt.read.1.tlog │ ├── mt.write.1.tlog │ ├── rc.command.1.tlog │ ├── rc.read.1.tlog │ ├── rc.write.1.tlog │ └── vc100.pdb │ ├── Resource.h │ ├── Setup.xlsx │ ├── SmallWindows.ini │ ├── UnitScrollZoom.c │ ├── UnitScrollZoom.h │ ├── Word.aps │ ├── Word.docx │ ├── Word.h │ ├── Word.vcxproj │ ├── Word.vcxproj.filters │ ├── WordApplication.cpp │ ├── WordCalculate.cpp │ ├── WordCommand.cpp │ ├── WordDocument.cpp │ ├── WordDocument.h │ ├── WordDocument2.cpp │ ├── WordKeyboard.cpp │ └── res │ ├── Toolbar.bmp │ ├── Word.ico │ ├── Word.manifest │ ├── Word.rc2 │ └── WordDoc.ico ├── Empty Project ├── EmptyProject.sln ├── EmptyProject.v12.suo ├── EmptyProject │ ├── Debug │ │ ├── EmptyProject.Build.CppClean.log │ │ └── EmptyProject.log │ ├── EmptyProject.vcxproj │ ├── EmptyProject.vcxproj.filters │ ├── EmptyWindow.cpp │ ├── EmptyWindow.h │ └── MainWindow.cpp └── SmallWindows │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Application.cpp │ ├── Application.h │ ├── Clipboard.cpp │ ├── Clipboard.h │ ├── Color.cpp │ ├── Color.h │ ├── Command.cpp │ ├── Command.h │ ├── Complex.cpp │ ├── Complex.h │ ├── Controls │ ├── ButtonControl.cpp │ ├── ButtonControl.h │ ├── CheckBox.cpp │ ├── CheckBox.h │ ├── ComboBox.cpp │ ├── ComboBox.h │ ├── Control.cpp │ ├── Control.h │ ├── GroupBox.cpp │ ├── GroupBox.h │ ├── Label.cpp │ ├── Label.h │ ├── ListBox.cpp │ ├── ListBox.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MultipleListBox.cpp │ ├── MultipleListBox.h │ ├── PushButton.cpp │ ├── PushButton.h │ ├── RadioButton.cpp │ ├── RadioButton.h │ ├── TextField.cpp │ └── TextField.h │ ├── Converter.cpp │ ├── Converter.h │ ├── Cursor.cpp │ ├── Cursor.h │ ├── Dialog.cpp │ ├── Dialog.h │ ├── Document.cpp │ ├── Document.h │ ├── DynamicList.cpp │ ├── DynamicList.h │ ├── Font.cpp │ ├── Font.h │ ├── FontDialog.cpp │ ├── FontDialog.h │ ├── Graphics.cpp │ ├── Graphics.h │ ├── InfoList.cpp │ ├── InfoList.h │ ├── ListControl.cpp │ ├── ListControl.h │ ├── MainWindow.h │ ├── Matrix.cpp │ ├── Matrix.h │ ├── Menu.cpp │ ├── Menu.h │ ├── PageSetupDialog.cpp │ ├── PageSetupDialog.h │ ├── PageSetupInfo.cpp │ ├── PageSetupInfo.h │ ├── Point.cpp │ ├── Point.h │ ├── PrintPreviewDocument.cpp │ ├── PrintPreviewDocument.h │ ├── Rational.cpp │ ├── Rational.h │ ├── Rect.cpp │ ├── Rect.h │ ├── Reference.cpp │ ├── Reference.h │ ├── Registry.cpp │ ├── Registry.h │ ├── Size.cpp │ ├── Size.h │ ├── SmallWindows.cpp │ ├── SmallWindows.h │ ├── StandardDialog.cpp │ ├── StandardDialog.h │ ├── StandardDocument.cpp │ ├── StandardDocument.h │ ├── String.cpp │ ├── String.h │ ├── Template.cpp │ ├── Template.h │ ├── Tree.cpp │ ├── Tree.h │ ├── WinMain.cpp │ ├── Window.cpp │ └── Window.h ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /Chapter10/HelloApplicationWin32API/Debug/HelloApplicationWin32API.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:02. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.01 6 | -------------------------------------------------------------------------------- /Chapter10/HelloApplicationWin32API/HelloApplicationWin32API.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter10/HelloApplicationWin32API/HelloApplicationWin32API.v12.suo -------------------------------------------------------------------------------- /Chapter2/Circle/Debug/Circle.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:36:53. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.11 6 | -------------------------------------------------------------------------------- /Chapter2/Circle/Logger.ini: -------------------------------------------------------------------------------- 1 | [Circle] 2 | NextColor=32768 3 | -------------------------------------------------------------------------------- /Chapter2/Circle/MainWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Circle.h" 3 | #include "CircleDocument.h" 4 | 5 | void MainWindow(vector /* argumentList */, 6 | WindowShow windowShow) { 7 | Application::ApplicationName() = TEXT("Circle"); 8 | Application::MainWindowPtr() = 9 | new CircleDocument(windowShow); 10 | } 11 | -------------------------------------------------------------------------------- /Chapter2/Circle/SmallWindows.ini: -------------------------------------------------------------------------------- 1 | [Circle] 2 | NextColor=FF000000FF 3 | -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/Hello.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:29:28. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.04 6 | -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/HelloSma.CC475627.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/Hello/Debug/HelloSma.CC475627.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/HelloSma.CC475627.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/Hello/Debug/HelloSma.CC475627.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/HelloSma.CC475627.tlog/HelloSmallWindows.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/HelloSma.CC475627.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/Hello/Debug/HelloSma.CC475627.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/HelloSma.CC475627.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/Hello/Debug/HelloSma.CC475627.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/HelloSma.CC475627.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/Hello/Debug/HelloSma.CC475627.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter2/Hello/Debug/HelloSma.CC475627.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/Hello/Debug/HelloSma.CC475627.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter2/Hello/HelloWindow.h: -------------------------------------------------------------------------------- 1 | class HelloWindow : public Window { 2 | public: 3 | HelloWindow(WindowShow windowShow); 4 | void OnDraw(Graphics& graphics, DrawMode drawMode) const; 5 | }; 6 | -------------------------------------------------------------------------------- /Chapter2/Hello/MainWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "HelloWindow.h" 3 | 4 | void MainWindow(vector /* argumentList */, 5 | WindowShow windowShow) { 6 | Application::ApplicationName() = TEXT("Hello"); 7 | Application::MainWindowPtr() = 8 | new HelloWindow(windowShow); 9 | } 10 | -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/ButtonControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | 3 | class ButtonControl : public Control { 4 | public: 5 | ButtonControl(Dialog* parentPtr, Point topLeft, 6 | Size controlSize, String text, int style); 7 | 8 | protected: 9 | void Check(bool check) const; 10 | bool IsChecked() const; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/CheckBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class CheckBox : public ButtonControl { 3 | public: 4 | CheckBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, bool* checkPtr); 6 | 7 | private: 8 | void OnControlInit(Dialog* dialogPtr); 9 | void OnClick(Dialog* dialogPtr); 10 | bool* checkPtr; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/GroupBox.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | GroupBox::GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :ButtonControl(parentPtr, topLeft, controlSize, 7 | text, BS_GROUPBOX) { 8 | // Empty. 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/GroupBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class GroupBox : public ButtonControl { 3 | public: 4 | GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/Label.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | Label::Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :Control(parentPtr, topLeft, controlSize, 7 | TEXT("static"), text, 0) { 8 | } 9 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/Label.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class Label : public Control { 3 | public: 4 | Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/ListControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class ListControl : public Control { 3 | public: 4 | ListControl(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, int style, 6 | list textList); 7 | 8 | protected: 9 | void LoadList() const; 10 | 11 | private: 12 | list textList; 13 | }; 14 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/PushButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class PushButton : public ButtonControl { 3 | public: 4 | PushButton(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, 6 | VoidListener clickListener, 7 | bool default = false); 8 | void OnClick(Dialog* dialogPtr); 9 | 10 | private: 11 | VoidListener clickListener; 12 | }; 13 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/RadioButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class RadioButton : public ButtonControl { 3 | public: 4 | RadioButton(Dialog* parentPtr, Point topLeft, Size size, 5 | String text, int* indexPtr, int index); 6 | void OnControlInit(Dialog* dialogPtr); 7 | void OnClick(Dialog* dialogPtr); 8 | 9 | private: 10 | int *indexPtr, index; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Controls/TextField.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" -------------------------------------------------------------------------------- /Chapter2/SmallWindows/DynamicList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter2/SmallWindows/InfoList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | 3 | void InfoList::FromBuffer(const void* voidBuffer, int size) { 4 | const char* charBuffer = (const char*)voidBuffer; 5 | 6 | for (int count = 0; count < size; ++count) { 7 | list.PushBack(*(charBuffer++)); 8 | } 9 | } 10 | 11 | void InfoList::ToBuffer(void* voidBuffer) { 12 | char* charBuffer = (char*)voidBuffer; 13 | 14 | for (char c : list) { 15 | *(charBuffer++) = c; 16 | } 17 | } -------------------------------------------------------------------------------- /Chapter2/SmallWindows/ListControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/SmallWindows/ListControl.cpp -------------------------------------------------------------------------------- /Chapter2/SmallWindows/ListControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter2/SmallWindows/ListControl.h -------------------------------------------------------------------------------- /Chapter2/SmallWindows/MainWindow.h: -------------------------------------------------------------------------------- 1 | void MainWindow(vectorargumentList, 2 | SmallWindows::WindowShow windowShow); -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | -------------------------------------------------------------------------------- /Chapter2/SmallWindows/SmallWindows.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Template.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | String Template(const Document* documentPtr,String templateText, 3 | int copy = 0, int page = 0, int totalPages = 0); 4 | }; -------------------------------------------------------------------------------- /Chapter2/SmallWindows/Tree.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/ButtonControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | 3 | class ButtonControl : public Control { 4 | public: 5 | ButtonControl(Dialog* parentPtr, Point topLeft, 6 | Size controlSize, String text, int style); 7 | 8 | protected: 9 | void Check(bool check) const; 10 | bool IsChecked() const; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/CheckBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class CheckBox : public ButtonControl { 3 | public: 4 | CheckBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, bool* checkPtr); 6 | 7 | private: 8 | void OnControlInit(Dialog* dialogPtr); 9 | void OnClick(Dialog* dialogPtr); 10 | bool* checkPtr; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/GroupBox.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | GroupBox::GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :ButtonControl(parentPtr, topLeft, controlSize, 7 | text, BS_GROUPBOX) { 8 | // Empty. 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/GroupBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class GroupBox : public ButtonControl { 3 | public: 4 | GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/Label.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | Label::Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :Control(parentPtr, topLeft, controlSize, 7 | TEXT("static"), text, 0) { 8 | } 9 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/Label.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class Label : public Control { 3 | public: 4 | Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/ListControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class ListControl : public Control { 3 | public: 4 | ListControl(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, int style, 6 | list textList); 7 | 8 | protected: 9 | void LoadList() const; 10 | 11 | private: 12 | list textList; 13 | }; 14 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/PushButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class PushButton : public ButtonControl { 3 | public: 4 | PushButton(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, 6 | VoidListener clickListener, 7 | bool default = false); 8 | void OnClick(Dialog* dialogPtr); 9 | 10 | private: 11 | VoidListener clickListener; 12 | }; 13 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/RadioButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class RadioButton : public ButtonControl { 3 | public: 4 | RadioButton(Dialog* parentPtr, Point topLeft, Size size, 5 | String text, int* indexPtr, int index); 6 | void OnControlInit(Dialog* dialogPtr); 7 | void OnClick(Dialog* dialogPtr); 8 | 9 | private: 10 | int *indexPtr, index; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Controls/TextField.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" -------------------------------------------------------------------------------- /Chapter3/SmallWindows/DynamicList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter3/SmallWindows/InfoList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | 3 | void InfoList::FromBuffer(const void* voidBuffer, int size) { 4 | const char* charBuffer = (const char*)voidBuffer; 5 | 6 | for (int count = 0; count < size; ++count) { 7 | list.PushBack(*(charBuffer++)); 8 | } 9 | } 10 | 11 | void InfoList::ToBuffer(void* voidBuffer) { 12 | char* charBuffer = (char*)voidBuffer; 13 | 14 | for (char c : list) { 15 | *(charBuffer++) = c; 16 | } 17 | } -------------------------------------------------------------------------------- /Chapter3/SmallWindows/ListControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/SmallWindows/ListControl.cpp -------------------------------------------------------------------------------- /Chapter3/SmallWindows/ListControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/SmallWindows/ListControl.h -------------------------------------------------------------------------------- /Chapter3/SmallWindows/MainWindow.h: -------------------------------------------------------------------------------- 1 | void MainWindow(vectorargumentList, 2 | SmallWindows::WindowShow windowShow); -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | -------------------------------------------------------------------------------- /Chapter3/SmallWindows/SmallWindows.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Template.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | String Template(const Document* documentPtr,String templateText, 3 | int copy = 0, int page = 0, int totalPages = 0); 4 | }; -------------------------------------------------------------------------------- /Chapter3/SmallWindows/Tree.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter3/Tetris/BlueFigure.h: -------------------------------------------------------------------------------- 1 | class BlueFigure : public TetrisFigure { 2 | public: 3 | static IntPair NorthList[], EastList[], 4 | SouthList[], WestList[]; 5 | BlueFigure(Window* windowPtr, GameGrid* gameGridPtr); 6 | }; -------------------------------------------------------------------------------- /Chapter3/Tetris/BrownFigure.h: -------------------------------------------------------------------------------- 1 | class BrownFigure : public TetrisFigure { 2 | public: 3 | static IntPair HorizontalList[], VerticalList[]; 4 | BrownFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/Tetris.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/Tetris.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:37:22. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.08 6 | -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/TetrisGame.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Debug/TetrisGame.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/TetrisGame.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Debug/TetrisGame.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/TetrisGame.tlog/TetrisGame.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/TetrisGame.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Debug/TetrisGame.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/TetrisGame.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Debug/TetrisGame.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/TetrisGame.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Debug/TetrisGame.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Debug/TetrisGame.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Debug/TetrisGame.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/GreenFigure.h: -------------------------------------------------------------------------------- 1 | class GreenFigure : public TetrisFigure { 2 | public: 3 | static IntPair HorizontalList[], VerticalList[]; 4 | GreenFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; 6 | -------------------------------------------------------------------------------- /Chapter3/Tetris/PurpleFigure.h: -------------------------------------------------------------------------------- 1 | class PurpleFigure : public TetrisFigure { 2 | public: 3 | static IntPair NorthList[], EastList[], 4 | SouthList[], WestList[]; 5 | PurpleFigure(Window* windowPtr, GameGrid* gameGridPtr); 6 | }; -------------------------------------------------------------------------------- /Chapter3/Tetris/RedFigure.h: -------------------------------------------------------------------------------- 1 | class RedFigure : public TetrisFigure { 2 | public: 3 | static IntPair GenericList[]; 4 | RedFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/ColorGrid.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/ColorGrid.obj -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/Figure.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/Figure.obj -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/Tetris.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/Tetris.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/Tetris.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/Tetris.obj -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Chapter3/Tetris/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Release/vc100.pdb -------------------------------------------------------------------------------- /Chapter3/Tetris/ScoreList.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter3/Tetris/Tetris.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/Tetris.aps -------------------------------------------------------------------------------- /Chapter3/Tetris/TurquoiseFigure.h: -------------------------------------------------------------------------------- 1 | class TurquoiseFigure : public TetrisFigure { 2 | public: 3 | static IntPair HorizontalList[], VerticalList[]; 4 | TurquoiseFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; 6 | -------------------------------------------------------------------------------- /Chapter3/Tetris/YellowFigure.h: -------------------------------------------------------------------------------- 1 | class YellowFigure : public TetrisFigure { 2 | public: 3 | static IntPair NorthList[], EastList[], 4 | SouthList[], WestList[]; 5 | YellowFigure(Window* windowPtr, GameGrid* gameGridPtr); 6 | }; 7 | -------------------------------------------------------------------------------- /Chapter3/Tetris/res/Tetris.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/res/Tetris.ico -------------------------------------------------------------------------------- /Chapter3/Tetris/res/Tetris.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // Tetris.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /Chapter3/Tetris/res/TetrisDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/res/TetrisDoc.ico -------------------------------------------------------------------------------- /Chapter3/Tetris/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter3/Tetris/res/Toolbar.bmp -------------------------------------------------------------------------------- /Chapter4/Draw/CalcApplication.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Figure.h" 3 | #include "Line.h" 4 | #include "Arrow.h" 5 | #include "Rectangle.h" 6 | #include "Ellipse.h" 7 | #include "Text.h" 8 | #include "DrawWindow.h" 9 | 10 | int WINAPI WinMain(HINSTANCE hInstance, 11 | HINSTANCE hPrevInstance, 12 | PSTR stCmdLine, int iCmdShow) { 13 | CalcWindow calcWindow(hInstance, iCmdShow); 14 | return calcWindow.Run(); 15 | } 16 | -------------------------------------------------------------------------------- /Chapter4/Draw/Cursor.h: -------------------------------------------------------------------------------- 1 | #ifndef _CURSOR_ 2 | #define _CURSOR_ 3 | 4 | namespace SmallWindows { 5 | class Window; 6 | 7 | class Cursor { 8 | public: 9 | Cursor(Window* pWindow); 10 | ~Cursor(); 11 | 12 | void Show(); 13 | void Hide(); 14 | 15 | void SetSize(int xPos, int yPos); 16 | void SetPosition(int xPos, int yPos); 17 | 18 | private: 19 | Window* m_pWindow; 20 | }; 21 | }; 22 | #endif -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/Draw.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/Draw.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:41:01. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.09 6 | -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/DrawingProgram.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Debug/DrawingProgram.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Debug/DrawingProgram.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Draw.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Draw.aps -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Arrow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Arrow.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Command.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Command.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Draw.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Draw.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Draw.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Draw.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Draw.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Draw.res -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Ellipse.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Ellipse.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Figure.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Figure.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/File.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/File.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Keyboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Keyboard.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Line.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Line.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/List.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Rectangle.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Rectangle.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Text.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Text.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/Unit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/Unit.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/UnitScroll.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/UnitScroll.obj -------------------------------------------------------------------------------- /Chapter4/Draw/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/link-cvtres.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/link-cvtres.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/link-cvtres.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/link-cvtres.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/rc.command.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/rc.read.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/rc.write.1.tlog -------------------------------------------------------------------------------- /Chapter4/Draw/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/Release/vc100.pdb -------------------------------------------------------------------------------- /Chapter4/Draw/res/Draw.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/res/Draw.ico -------------------------------------------------------------------------------- /Chapter4/Draw/res/Draw.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // Draw.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /Chapter4/Draw/res/DrawDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/res/DrawDoc.ico -------------------------------------------------------------------------------- /Chapter4/Draw/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/Draw/res/Toolbar.bmp -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/ButtonControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | 3 | class ButtonControl : public Control { 4 | public: 5 | ButtonControl(Dialog* parentPtr, Point topLeft, 6 | Size controlSize, String text, int style); 7 | 8 | protected: 9 | void Check(bool check) const; 10 | bool IsChecked() const; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/CheckBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class CheckBox : public ButtonControl { 3 | public: 4 | CheckBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, bool* checkPtr); 6 | 7 | private: 8 | void OnControlInit(Dialog* dialogPtr); 9 | void OnClick(Dialog* dialogPtr); 10 | bool* checkPtr; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/GroupBox.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | GroupBox::GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :ButtonControl(parentPtr, topLeft, controlSize, 7 | text, BS_GROUPBOX) { 8 | // Empty. 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/GroupBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class GroupBox : public ButtonControl { 3 | public: 4 | GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/Label.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | Label::Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :Control(parentPtr, topLeft, controlSize, 7 | TEXT("static"), text, 0) { 8 | } 9 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/Label.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class Label : public Control { 3 | public: 4 | Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/ListControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class ListControl : public Control { 3 | public: 4 | ListControl(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, int style, 6 | list textList); 7 | 8 | protected: 9 | void LoadList() const; 10 | 11 | private: 12 | list textList; 13 | }; 14 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/PushButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class PushButton : public ButtonControl { 3 | public: 4 | PushButton(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, 6 | VoidListener clickListener, 7 | bool default = false); 8 | void OnClick(Dialog* dialogPtr); 9 | 10 | private: 11 | VoidListener clickListener; 12 | }; 13 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/RadioButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class RadioButton : public ButtonControl { 3 | public: 4 | RadioButton(Dialog* parentPtr, Point topLeft, Size size, 5 | String text, int* indexPtr, int index); 6 | void OnControlInit(Dialog* dialogPtr); 7 | void OnClick(Dialog* dialogPtr); 8 | 9 | private: 10 | int *indexPtr, index; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Controls/TextField.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" -------------------------------------------------------------------------------- /Chapter4/SmallWindows/DynamicList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter4/SmallWindows/InfoList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | 3 | void InfoList::FromBuffer(const void* voidBuffer, int size) { 4 | const char* charBuffer = (const char*)voidBuffer; 5 | 6 | for (int count = 0; count < size; ++count) { 7 | list.PushBack(*(charBuffer++)); 8 | } 9 | } 10 | 11 | void InfoList::ToBuffer(void* voidBuffer) { 12 | char* charBuffer = (char*)voidBuffer; 13 | 14 | for (char c : list) { 15 | *(charBuffer++) = c; 16 | } 17 | } -------------------------------------------------------------------------------- /Chapter4/SmallWindows/ListControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/SmallWindows/ListControl.cpp -------------------------------------------------------------------------------- /Chapter4/SmallWindows/ListControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter4/SmallWindows/ListControl.h -------------------------------------------------------------------------------- /Chapter4/SmallWindows/MainWindow.h: -------------------------------------------------------------------------------- 1 | void MainWindow(vectorargumentList, 2 | SmallWindows::WindowShow windowShow); -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | -------------------------------------------------------------------------------- /Chapter4/SmallWindows/SmallWindows.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Template.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | String Template(const Document* documentPtr,String templateText, 3 | int copy = 0, int page = 0, int totalPages = 0); 4 | }; -------------------------------------------------------------------------------- /Chapter4/SmallWindows/Tree.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/ButtonControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | 3 | class ButtonControl : public Control { 4 | public: 5 | ButtonControl(Dialog* parentPtr, Point topLeft, 6 | Size controlSize, String text, int style); 7 | 8 | protected: 9 | void Check(bool check) const; 10 | bool IsChecked() const; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/CheckBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class CheckBox : public ButtonControl { 3 | public: 4 | CheckBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, bool* checkPtr); 6 | 7 | private: 8 | void OnControlInit(Dialog* dialogPtr); 9 | void OnClick(Dialog* dialogPtr); 10 | bool* checkPtr; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/GroupBox.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | GroupBox::GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :ButtonControl(parentPtr, topLeft, controlSize, 7 | text, BS_GROUPBOX) { 8 | // Empty. 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/GroupBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class GroupBox : public ButtonControl { 3 | public: 4 | GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/Label.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | Label::Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :Control(parentPtr, topLeft, controlSize, 7 | TEXT("static"), text, 0) { 8 | } 9 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/Label.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class Label : public Control { 3 | public: 4 | Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/ListControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class ListControl : public Control { 3 | public: 4 | ListControl(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, int style, 6 | list textList); 7 | 8 | protected: 9 | void LoadList() const; 10 | 11 | private: 12 | list textList; 13 | }; 14 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/PushButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class PushButton : public ButtonControl { 3 | public: 4 | PushButton(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, 6 | VoidListener clickListener, 7 | bool default = false); 8 | void OnClick(Dialog* dialogPtr); 9 | 10 | private: 11 | VoidListener clickListener; 12 | }; 13 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/RadioButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class RadioButton : public ButtonControl { 3 | public: 4 | RadioButton(Dialog* parentPtr, Point topLeft, Size size, 5 | String text, int* indexPtr, int index); 6 | void OnControlInit(Dialog* dialogPtr); 7 | void OnClick(Dialog* dialogPtr); 8 | 9 | private: 10 | int *indexPtr, index; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Controls/TextField.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" -------------------------------------------------------------------------------- /Chapter6/SmallWindows/DynamicList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter6/SmallWindows/InfoList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | 3 | void InfoList::FromBuffer(const void* voidBuffer, int size) { 4 | const char* charBuffer = (const char*)voidBuffer; 5 | 6 | for (int count = 0; count < size; ++count) { 7 | list.PushBack(*(charBuffer++)); 8 | } 9 | } 10 | 11 | void InfoList::ToBuffer(void* voidBuffer) { 12 | char* charBuffer = (char*)voidBuffer; 13 | 14 | for (char c : list) { 15 | *(charBuffer++) = c; 16 | } 17 | } -------------------------------------------------------------------------------- /Chapter6/SmallWindows/ListControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/SmallWindows/ListControl.cpp -------------------------------------------------------------------------------- /Chapter6/SmallWindows/ListControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/SmallWindows/ListControl.h -------------------------------------------------------------------------------- /Chapter6/SmallWindows/MainWindow.h: -------------------------------------------------------------------------------- 1 | void MainWindow(vectorargumentList, 2 | SmallWindows::WindowShow windowShow); -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | -------------------------------------------------------------------------------- /Chapter6/SmallWindows/SmallWindows.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Template.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | String Template(const Document* documentPtr,String templateText, 3 | int copy = 0, int page = 0, int totalPages = 0); 4 | }; -------------------------------------------------------------------------------- /Chapter6/SmallWindows/Tree.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter6/Word/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Chapter6/Word/Debug/Word.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter6/Word/Debug/Word.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:41:29. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.01 6 | -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/WordProcessor.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Debug/WordProcessor.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Debug/WordProcessor.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Header.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Header.xlsx -------------------------------------------------------------------------------- /Chapter6/Word/MainWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "CharInfo.h" 3 | #include "LineInfo.h" 4 | #include "Paragraph.h" 5 | #include "WordDocument.h" 6 | 7 | void MainWindow(vector /* argumentList */, 8 | WindowShow windowShow) { 9 | Application::ApplicationName() = TEXT("Word"); 10 | Application::MainWindowPtr() = new WordDocument(windowShow); 11 | } -------------------------------------------------------------------------------- /Chapter6/Word/PageInfo.h: -------------------------------------------------------------------------------- 1 | #if 0 2 | struct PageInfo { 3 | PageInfo(); 4 | PageInfo(int firstParagraph, int lastParagraph, int height); 5 | 6 | bool WritePageInfoToStream(ostream& outStream) const; 7 | bool ReadPageInfoFromStream(istream& inStream); 8 | 9 | int m_firstParagraph, m_lastParagraph, m_height; 10 | }; 11 | #endif -------------------------------------------------------------------------------- /Chapter6/Word/Print.h: -------------------------------------------------------------------------------- 1 | void OnFilePrint(); 2 | bool PrintPage(HWND HDC hDC, TEMPLATE_INFO* pTempInfo, 3 | int iPage, int iCopy); 4 | bool CALLBACK DialogProc(HWND hDlg, UINT uMessage, WPARAM wParam, 5 | LPARAM lParam); 6 | bool CALLBACK AbortProc(HDC hDC, int iCode); 7 | void Print(HWND HDC hDC, int iPage, bool bPreview, TEMPLATE_INFO* pSetupInfo); 8 | -------------------------------------------------------------------------------- /Chapter6/Word/PrintMessageDialog.h: -------------------------------------------------------------------------------- 1 | #ifndef _PRINT_MESSAGE_DIALOG_ 2 | #define _PRINT_MESSAGE_DIALOG_ 3 | 4 | class PrintMessageDialog : public Dialog { 5 | public: 6 | PrintMessageDialog(Window* pParent); 7 | void SetMessage(String stMessage); 8 | 9 | void OnClick(Component* pSource); 10 | DECLARE_VOID_LISTENER(PrintMessageDialog, OnCancel); 11 | 12 | private: 13 | Label* m_pMessageLabel; 14 | Button* m_pCancelButton; 15 | }; 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /Chapter6/Word/PrintProgressDialog.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Resource.h" 3 | 4 | IDR_PRINTBOX DIALOG DISCARDABLE 20, 20, 186, 63 5 | STYLE DS_MODALFRAME | WS_POPUP | 6 | WS_VISIBLE | WS_CAPTION | WS_SYSMENU 7 | FONT 10, "Times New Roman" 8 | BEGIN 9 | PUSHBUTTON "&Cancel", IDCANCEL, 67, 42, 50, 14 10 | CTEXT "", ID_PRINTMESSAGE, 7, 21, 172, 8 11 | END -------------------------------------------------------------------------------- /Chapter6/Word/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/Calculate.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Calculate.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Clipboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Clipboard.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Command.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Command.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Keyboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Keyboard.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/List.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/MenuAccelarator.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/MenuAccelarator.res -------------------------------------------------------------------------------- /Chapter6/Word/Release/Paragraph.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Paragraph.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Position.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Position.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Print.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Print.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/PrintPreview.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/PrintPreview.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/PrintProgressDialog.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/PrintProgressDialog.res -------------------------------------------------------------------------------- /Chapter6/Word/Release/PrintSetupDialog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/PrintSetupDialog.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/PrintSetupDialog.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/PrintSetupDialog.res -------------------------------------------------------------------------------- /Chapter6/Word/Release/Set.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Set.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Template.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Template.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Unit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Unit.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/UnitScroll.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/UnitScroll.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/UnitScrollZoom.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/UnitScrollZoom.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/Word.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter6/Word/Release/Word.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter6/Word/Release/Word.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/Word.obj -------------------------------------------------------------------------------- /Chapter6/Word/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/link-cvtres.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/link-cvtres.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/link-cvtres.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/link-cvtres.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/rc.command.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/rc.read.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/rc.write.1.tlog -------------------------------------------------------------------------------- /Chapter6/Word/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Release/vc100.pdb -------------------------------------------------------------------------------- /Chapter6/Word/Setup.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Setup.xlsx -------------------------------------------------------------------------------- /Chapter6/Word/SmallWindows.ini: -------------------------------------------------------------------------------- 1 | [Word] 2 | m_nextFont_Height=10 3 | m_nextFont_Italic=0 4 | m_nextFont_Bold=400 5 | m_nextFont_Underline=0 6 | m_nextFont_Name=Times New Roman 7 | -------------------------------------------------------------------------------- /Chapter6/Word/Word.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Word.aps -------------------------------------------------------------------------------- /Chapter6/Word/Word.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/Word.docx -------------------------------------------------------------------------------- /Chapter6/Word/WordApplication.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Template.h" 3 | #include "PrintSetupDialog.h" 4 | #include "PrintMessageDialog.h" 5 | #include "PrintPreviewDocument.h" 6 | #include "Position.h" 7 | #include "CharInfo.h" 8 | #include "Paragraph.h" 9 | #include "WordDocument.h" 10 | 11 | /* 12 | Window* MainWindow() { 13 | return (new WordDocument()); 14 | } 15 | */ -------------------------------------------------------------------------------- /Chapter6/Word/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/res/Toolbar.bmp -------------------------------------------------------------------------------- /Chapter6/Word/res/Word.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/res/Word.ico -------------------------------------------------------------------------------- /Chapter6/Word/res/Word.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // Word.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /Chapter6/Word/res/WordDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter6/Word/res/WordDoc.ico -------------------------------------------------------------------------------- /Chapter8/Calc/Calc.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Calc.aps -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/Calc.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/Calc.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:41:51. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.06 6 | -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/SpreadApplication.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\A C++ Windows Programming - A\| 3 | -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadAp.E96A6170.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/SpreadSheetProgram.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Debug/SpreadSh.E96A6170.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Error.h: -------------------------------------------------------------------------------- 1 | enum ErrorId {SyntaxError, CircularReference, ReferenceOutOfRange, 2 | DivisionByZero, MissingValue}; 3 | 4 | class Error : public exception { 5 | public: 6 | Error(ErrorId errorId); 7 | String ErrorText() const; 8 | 9 | private: 10 | ErrorId errorId; 11 | }; -------------------------------------------------------------------------------- /Chapter8/Calc/Parser.h: -------------------------------------------------------------------------------- 1 | class Parser { 2 | public: 3 | Parser(String buffer); 4 | Tree* Parse(); 5 | void Match(int tokenId); 6 | Tree* Expression(); 7 | Tree* NextExpression(Tree* leftTermPtr); 8 | Tree* Term(); 9 | Tree* NextTerm(Tree* leftFactorPtr); 10 | Tree* Factor(); 11 | 12 | private: 13 | list tokenList; 14 | }; -------------------------------------------------------------------------------- /Chapter8/Calc/Release/BTree.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/BTree.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Calc.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Calc.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Calc.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Calc.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Calc.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Calc.res -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Cell.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Cell.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Command.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Command.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Error.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Error.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Keyboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Keyboard.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/List.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Matrix.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Matrix.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Parser.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Parser.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Reference.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Reference.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Scanner.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Scanner.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Set.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Set.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/TSetMatrix.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/TSetMatrix.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/Unit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/Unit.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/UnitScroll.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/UnitScroll.obj -------------------------------------------------------------------------------- /Chapter8/Calc/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/link-cvtres.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/link-cvtres.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/link-cvtres.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/link-cvtres.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/rc.command.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/rc.read.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/rc.write.1.tlog -------------------------------------------------------------------------------- /Chapter8/Calc/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/Release/vc100.pdb -------------------------------------------------------------------------------- /Chapter8/Calc/Scanner.h: -------------------------------------------------------------------------------- 1 | class Scanner { 2 | public: 3 | Scanner(String buffer); 4 | list Scan(); 5 | Token NextToken(); 6 | bool ScanValue(double& value); 7 | bool ScanReference(Reference& reference); 8 | 9 | private: 10 | String buffer; 11 | }; -------------------------------------------------------------------------------- /Chapter8/Calc/SmallWindows.ini: -------------------------------------------------------------------------------- 1 | [Calc] 2 | m_calcMode=1 3 | m_editRef=0 4 | m_editIndex=1 5 | m_firstMarkRef=0 6 | m_lastMarkRef=0 7 | calcMode=0100000001 8 | editRef=0 9 | editIndex=0100000001 10 | firstMarkRef=0 11 | lastMarkRef=0 12 | editRef_row=0000000000 13 | editRef_col=0000000000 14 | firstMarkRef_row=0100000001 15 | firstMarkRef_col=0000000000 16 | lastMarkRef_row=0100000001 17 | lastMarkRef_col=0000000000 18 | -------------------------------------------------------------------------------- /Chapter8/Calc/Token.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Token.h" 3 | 4 | Token::Token(TokenId tokenId) 5 | :tokenId(tokenId) { 6 | // Empty. 7 | } 8 | 9 | Token::Token(double value) 10 | :tokenId(Number), 11 | value(value) { 12 | // Empty. 13 | } 14 | 15 | Token::Token(Reference reference) 16 | : tokenId(RefToken), 17 | reference(reference) { 18 | // Empty. 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Chapter8/Calc/Triple.cpp: -------------------------------------------------------------------------------- 1 | //#include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter8/Calc/Triple.h: -------------------------------------------------------------------------------- 1 | /*template 2 | struct Triple { 3 | typedef Type1 first_type; 4 | typedef Type2 second_type; 5 | typedef Type3 third_type; 6 | 7 | Type1 first; 8 | Type2 second; 9 | Type3 third; 10 | 11 | Triple(); 12 | Triple(const Type1& f, const Type1& s, const Type1& t) 13 | :first(f), 14 | second(s), 15 | third(t) { 16 | // Empty. 17 | } 18 | };*/ -------------------------------------------------------------------------------- /Chapter8/Calc/res/Calc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/res/Calc.ico -------------------------------------------------------------------------------- /Chapter8/Calc/res/Calc.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // Calc.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /Chapter8/Calc/res/CalcDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/res/CalcDoc.ico -------------------------------------------------------------------------------- /Chapter8/Calc/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/res/Toolbar.bmp -------------------------------------------------------------------------------- /Chapter8/Calc/res/Word.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/res/Word.ico -------------------------------------------------------------------------------- /Chapter8/Calc/res/WordDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/res/WordDoc.ico -------------------------------------------------------------------------------- /Chapter8/Calc/res/idr_calc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/res/idr_calc.ico -------------------------------------------------------------------------------- /Chapter8/Calc/res/idr_main.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/Calc/res/idr_main.ico -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/ButtonControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | 3 | class ButtonControl : public Control { 4 | public: 5 | ButtonControl(Dialog* parentPtr, Point topLeft, 6 | Size controlSize, String text, int style); 7 | 8 | protected: 9 | void Check(bool check) const; 10 | bool IsChecked() const; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/CheckBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class CheckBox : public ButtonControl { 3 | public: 4 | CheckBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, bool* checkPtr); 6 | 7 | private: 8 | void OnControlInit(Dialog* dialogPtr); 9 | void OnClick(Dialog* dialogPtr); 10 | bool* checkPtr; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/GroupBox.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | GroupBox::GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :ButtonControl(parentPtr, topLeft, controlSize, 7 | text, BS_GROUPBOX) { 8 | // Empty. 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/GroupBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class GroupBox : public ButtonControl { 3 | public: 4 | GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/Label.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | Label::Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :Control(parentPtr, topLeft, controlSize, 7 | TEXT("static"), text, 0) { 8 | } 9 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/Label.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class Label : public Control { 3 | public: 4 | Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/ListControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class ListControl : public Control { 3 | public: 4 | ListControl(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, int style, 6 | list textList); 7 | 8 | protected: 9 | void LoadList() const; 10 | 11 | private: 12 | list textList; 13 | }; 14 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/PushButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class PushButton : public ButtonControl { 3 | public: 4 | PushButton(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, 6 | VoidListener clickListener, 7 | bool default = false); 8 | void OnClick(Dialog* dialogPtr); 9 | 10 | private: 11 | VoidListener clickListener; 12 | }; 13 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/RadioButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class RadioButton : public ButtonControl { 3 | public: 4 | RadioButton(Dialog* parentPtr, Point topLeft, Size size, 5 | String text, int* indexPtr, int index); 6 | void OnControlInit(Dialog* dialogPtr); 7 | void OnClick(Dialog* dialogPtr); 8 | 9 | private: 10 | int *indexPtr, index; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Controls/TextField.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" -------------------------------------------------------------------------------- /Chapter8/SmallWindows/DynamicList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter8/SmallWindows/InfoList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | 3 | void InfoList::FromBuffer(const void* voidBuffer, int size) { 4 | const char* charBuffer = (const char*)voidBuffer; 5 | 6 | for (int count = 0; count < size; ++count) { 7 | list.PushBack(*(charBuffer++)); 8 | } 9 | } 10 | 11 | void InfoList::ToBuffer(void* voidBuffer) { 12 | char* charBuffer = (char*)voidBuffer; 13 | 14 | for (char c : list) { 15 | *(charBuffer++) = c; 16 | } 17 | } -------------------------------------------------------------------------------- /Chapter8/SmallWindows/ListControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/SmallWindows/ListControl.cpp -------------------------------------------------------------------------------- /Chapter8/SmallWindows/ListControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Chapter8/SmallWindows/ListControl.h -------------------------------------------------------------------------------- /Chapter8/SmallWindows/MainWindow.h: -------------------------------------------------------------------------------- 1 | void MainWindow(vectorargumentList, 2 | SmallWindows::WindowShow windowShow); -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | -------------------------------------------------------------------------------- /Chapter8/SmallWindows/SmallWindows.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Template.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | String Template(const Document* documentPtr,String templateText, 3 | int copy = 0, int page = 0, int totalPages = 0); 4 | }; -------------------------------------------------------------------------------- /Chapter8/SmallWindows/Tree.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Cpp Windows Programming/C++ Windows Programming.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/C++ Windows Programming.v12.suo -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Calc.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Calc.aps -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/Calc.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/Calc.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:35. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.01 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/SpreadApplication.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\A C++ Windows Programming - A\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadAp.E96A6170.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/SpreadSheetProgram.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Debug/SpreadSh.E96A6170.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Error.h: -------------------------------------------------------------------------------- 1 | enum ErrorId {SyntaxError, CircularReference, ReferenceOutOfRange, 2 | DivisionByZero, MissingValue}; 3 | 4 | class Error : public exception { 5 | public: 6 | Error(ErrorId errorId); 7 | String ErrorText() const; 8 | 9 | private: 10 | ErrorId errorId; 11 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Parser.h: -------------------------------------------------------------------------------- 1 | class Parser { 2 | public: 3 | Parser(String buffer); 4 | Tree* Parse(); 5 | void Match(int tokenId); 6 | Tree* Expression(); 7 | Tree* NextExpression(Tree* leftTermPtr); 8 | Tree* Term(); 9 | Tree* NextTerm(Tree* leftFactorPtr); 10 | Tree* Factor(); 11 | 12 | private: 13 | list tokenList; 14 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/BTree.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/BTree.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Calc.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Calc.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Calc.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Calc.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Calc.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Calc.res -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Cell.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Cell.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Command.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Command.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Error.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Error.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Keyboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Keyboard.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/List.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Matrix.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Matrix.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Parser.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Parser.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Reference.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Reference.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Scanner.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Scanner.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Set.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Set.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/TSetMatrix.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/TSetMatrix.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/Unit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/Unit.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/UnitScroll.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/UnitScroll.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/link-cvtres.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/link-cvtres.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/link-cvtres.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/link-cvtres.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/rc.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/rc.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/rc.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/Release/vc100.pdb -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Scanner.h: -------------------------------------------------------------------------------- 1 | class Scanner { 2 | public: 3 | Scanner(String buffer); 4 | list Scan(); 5 | Token NextToken(); 6 | bool ScanValue(double& value); 7 | bool ScanReference(Reference& reference); 8 | 9 | private: 10 | String buffer; 11 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/SmallWindows.ini: -------------------------------------------------------------------------------- 1 | [Calc] 2 | m_calcMode=1 3 | m_editRef=0 4 | m_editIndex=1 5 | m_firstMarkRef=0 6 | m_lastMarkRef=0 7 | calcMode=0100000001 8 | editRef=0 9 | editIndex=0100000001 10 | firstMarkRef=0 11 | lastMarkRef=0 12 | editRef_row=0000000000 13 | editRef_col=0000000000 14 | firstMarkRef_row=0100000001 15 | firstMarkRef_col=0000000000 16 | lastMarkRef_row=0100000001 17 | lastMarkRef_col=0000000000 18 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Token.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Token.h" 3 | 4 | Token::Token(TokenId tokenId) 5 | :tokenId(tokenId) { 6 | // Empty. 7 | } 8 | 9 | Token::Token(double value) 10 | :tokenId(Number), 11 | value(value) { 12 | // Empty. 13 | } 14 | 15 | Token::Token(Reference reference) 16 | : tokenId(RefToken), 17 | reference(reference) { 18 | // Empty. 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Triple.cpp: -------------------------------------------------------------------------------- 1 | //#include "SmallWindows.h" -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/Triple.h: -------------------------------------------------------------------------------- 1 | /*template 2 | struct Triple { 3 | typedef Type1 first_type; 4 | typedef Type2 second_type; 5 | typedef Type3 third_type; 6 | 7 | Type1 first; 8 | Type2 second; 9 | Type3 third; 10 | 11 | Triple(); 12 | Triple(const Type1& f, const Type1& s, const Type1& t) 13 | :first(f), 14 | second(s), 15 | third(t) { 16 | // Empty. 17 | } 18 | };*/ -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/Calc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/res/Calc.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/Calc.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // Calc.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/CalcDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/res/CalcDoc.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/res/Toolbar.bmp -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/Word.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/res/Word.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/WordDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/res/WordDoc.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/idr_calc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/res/idr_calc.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Calc/res/idr_main.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Calc/res/idr_main.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Circle/Debug/Circle.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:35. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Circle/Logger.ini: -------------------------------------------------------------------------------- 1 | [Circle] 2 | NextColor=32768 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Circle/MainWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Circle.h" 3 | #include "CircleDocument.h" 4 | 5 | void MainWindow(vector /* argumentList */, 6 | WindowShow windowShow) { 7 | Application::ApplicationName() = TEXT("Circle"); 8 | Application::MainWindowPtr() = 9 | new CircleDocument(windowShow); 10 | } 11 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Circle/SmallWindows.ini: -------------------------------------------------------------------------------- 1 | [Circle] 2 | NextColor=FF000000FF 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/CalcApplication.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Figure.h" 3 | #include "Line.h" 4 | #include "Arrow.h" 5 | #include "Rectangle.h" 6 | #include "Ellipse.h" 7 | #include "Text.h" 8 | #include "DrawWindow.h" 9 | 10 | int WINAPI WinMain(HINSTANCE hInstance, 11 | HINSTANCE hPrevInstance, 12 | PSTR stCmdLine, int iCmdShow) { 13 | CalcWindow calcWindow(hInstance, iCmdShow); 14 | return calcWindow.Run(); 15 | } 16 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Cursor.h: -------------------------------------------------------------------------------- 1 | #ifndef _CURSOR_ 2 | #define _CURSOR_ 3 | 4 | namespace SmallWindows { 5 | class Window; 6 | 7 | class Cursor { 8 | public: 9 | Cursor(Window* pWindow); 10 | ~Cursor(); 11 | 12 | void Show(); 13 | void Hide(); 14 | 15 | void SetSize(int xPos, int yPos); 16 | void SetPosition(int xPos, int yPos); 17 | 18 | private: 19 | Window* m_pWindow; 20 | }; 21 | }; 22 | #endif -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/Draw.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/Draw.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:35. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.01 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/DrawingProgram.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Debug/DrawingProgram.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Draw.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Draw.aps -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Arrow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Arrow.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Command.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Command.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Draw.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Draw.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Draw.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Draw.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Draw.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Draw.res -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Ellipse.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Ellipse.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Figure.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Figure.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/File.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/File.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Keyboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Keyboard.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Line.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Line.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/List.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Rectangle.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Rectangle.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Text.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Text.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/Unit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/Unit.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/UnitScroll.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/UnitScroll.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/link-cvtres.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/link-cvtres.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/link-cvtres.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/link-cvtres.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/rc.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/rc.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/rc.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/Release/vc100.pdb -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/res/Draw.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/res/Draw.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/res/Draw.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // Draw.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/res/DrawDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/res/DrawDoc.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Draw/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Draw/res/Toolbar.bmp -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/Hello.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:35. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.02 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/HelloSmallWindows.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Hello/Debug/HelloSma.CC475627.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/HelloWindow.h: -------------------------------------------------------------------------------- 1 | class HelloWindow : public Window { 2 | public: 3 | HelloWindow(WindowShow windowShow); 4 | void OnDraw(Graphics& graphics, DrawMode drawMode) const; 5 | }; 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Hello/MainWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "HelloWindow.h" 3 | 4 | void MainWindow(vector /* argumentList */, 5 | WindowShow windowShow) { 6 | Application::ApplicationName() = TEXT("Hello"); 7 | Application::MainWindowPtr() = 8 | new HelloWindow(windowShow); 9 | } 10 | -------------------------------------------------------------------------------- /Cpp Windows Programming/HelloApplicationWin32API/Debug/HelloApplicationWin32API.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:35. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.04 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/ButtonControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | 3 | class ButtonControl : public Control { 4 | public: 5 | ButtonControl(Dialog* parentPtr, Point topLeft, 6 | Size controlSize, String text, int style); 7 | 8 | protected: 9 | void Check(bool check) const; 10 | bool IsChecked() const; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/CheckBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class CheckBox : public ButtonControl { 3 | public: 4 | CheckBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, bool* checkPtr); 6 | 7 | private: 8 | void OnControlInit(Dialog* dialogPtr); 9 | void OnClick(Dialog* dialogPtr); 10 | bool* checkPtr; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/GroupBox.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | GroupBox::GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :ButtonControl(parentPtr, topLeft, controlSize, 7 | text, BS_GROUPBOX) { 8 | // Empty. 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/GroupBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class GroupBox : public ButtonControl { 3 | public: 4 | GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/Label.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | Label::Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :Control(parentPtr, topLeft, controlSize, 7 | TEXT("static"), text, 0) { 8 | } 9 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/Label.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class Label : public Control { 3 | public: 4 | Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/ListControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class ListControl : public Control { 3 | public: 4 | ListControl(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, int style, 6 | list textList); 7 | 8 | protected: 9 | void LoadList() const; 10 | 11 | private: 12 | list textList; 13 | }; 14 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/PushButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class PushButton : public ButtonControl { 3 | public: 4 | PushButton(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, 6 | VoidListener clickListener, 7 | bool default = false); 8 | void OnClick(Dialog* dialogPtr); 9 | 10 | private: 11 | VoidListener clickListener; 12 | }; 13 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/RadioButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class RadioButton : public ButtonControl { 3 | public: 4 | RadioButton(Dialog* parentPtr, Point topLeft, Size size, 5 | String text, int* indexPtr, int index); 6 | void OnControlInit(Dialog* dialogPtr); 7 | void OnClick(Dialog* dialogPtr); 8 | 9 | private: 10 | int *indexPtr, index; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Controls/TextField.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/DynamicList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/ListControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/SmallWindows/ListControl.cpp -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/ListControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/SmallWindows/ListControl.h -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/MainWindow.h: -------------------------------------------------------------------------------- 1 | void MainWindow(vectorargumentList, 2 | SmallWindows::WindowShow windowShow); -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/SmallWindows.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Template.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | String Template(const Document* documentPtr,String templateText, 3 | int copy = 0, int page = 0, int totalPages = 0); 4 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/SmallWindows/Tree.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/BlueFigure.h: -------------------------------------------------------------------------------- 1 | class BlueFigure : public TetrisFigure { 2 | public: 3 | static IntPair NorthList[], EastList[], 4 | SouthList[], WestList[]; 5 | BlueFigure(Window* windowPtr, GameGrid* gameGridPtr); 6 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/BrownFigure.h: -------------------------------------------------------------------------------- 1 | class BrownFigure : public TetrisFigure { 2 | public: 3 | static IntPair HorizontalList[], VerticalList[]; 4 | BrownFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/Tetris.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/Tetris.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:35. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.01 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/TetrisGame.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Debug/TetrisGame.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/GreenFigure.h: -------------------------------------------------------------------------------- 1 | class GreenFigure : public TetrisFigure { 2 | public: 3 | static IntPair HorizontalList[], VerticalList[]; 4 | GreenFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/PurpleFigure.h: -------------------------------------------------------------------------------- 1 | class PurpleFigure : public TetrisFigure { 2 | public: 3 | static IntPair NorthList[], EastList[], 4 | SouthList[], WestList[]; 5 | PurpleFigure(Window* windowPtr, GameGrid* gameGridPtr); 6 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/RedFigure.h: -------------------------------------------------------------------------------- 1 | class RedFigure : public TetrisFigure { 2 | public: 3 | static IntPair GenericList[]; 4 | RedFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/ColorGrid.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/ColorGrid.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/Figure.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/Figure.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/Tetris.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/Tetris.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/Tetris.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/Tetris.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Release/vc100.pdb -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/ScoreList.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/Tetris.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/Tetris.aps -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/TurquoiseFigure.h: -------------------------------------------------------------------------------- 1 | class TurquoiseFigure : public TetrisFigure { 2 | public: 3 | static IntPair HorizontalList[], VerticalList[]; 4 | TurquoiseFigure(Window* windowPtr, GameGrid* gameGridPtr); 5 | }; 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/YellowFigure.h: -------------------------------------------------------------------------------- 1 | class YellowFigure : public TetrisFigure { 2 | public: 3 | static IntPair NorthList[], EastList[], 4 | SouthList[], WestList[]; 5 | YellowFigure(Window* windowPtr, GameGrid* gameGridPtr); 6 | }; 7 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/res/Tetris.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/res/Tetris.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/res/TetrisDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/res/TetrisDoc.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Tetris/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Tetris/res/Toolbar.bmp -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/BuildLog.htm -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/Word.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Debug|Win32|C:\Users\stefanb\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/Word.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-16 20:28:35. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.01 6 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/WordProcessor.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Users\Stefan\Documents\C++ Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Debug/WordProcessor.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Debug/WordProcessor.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Header.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Header.xlsx -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/MainWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "CharInfo.h" 3 | #include "LineInfo.h" 4 | #include "Paragraph.h" 5 | #include "WordDocument.h" 6 | 7 | void MainWindow(vector /* argumentList */, 8 | WindowShow windowShow) { 9 | Application::ApplicationName() = TEXT("Word"); 10 | Application::MainWindowPtr() = new WordDocument(windowShow); 11 | } -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/PageInfo.h: -------------------------------------------------------------------------------- 1 | #if 0 2 | struct PageInfo { 3 | PageInfo(); 4 | PageInfo(int firstParagraph, int lastParagraph, int height); 5 | 6 | bool WritePageInfoToStream(ostream& outStream) const; 7 | bool ReadPageInfoFromStream(istream& inStream); 8 | 9 | int m_firstParagraph, m_lastParagraph, m_height; 10 | }; 11 | #endif -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Print.h: -------------------------------------------------------------------------------- 1 | void OnFilePrint(); 2 | bool PrintPage(HWND HDC hDC, TEMPLATE_INFO* pTempInfo, 3 | int iPage, int iCopy); 4 | bool CALLBACK DialogProc(HWND hDlg, UINT uMessage, WPARAM wParam, 5 | LPARAM lParam); 6 | bool CALLBACK AbortProc(HDC hDC, int iCode); 7 | void Print(HWND HDC hDC, int iPage, bool bPreview, TEMPLATE_INFO* pSetupInfo); 8 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/PrintProgressDialog.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Resource.h" 3 | 4 | IDR_PRINTBOX DIALOG DISCARDABLE 20, 20, 186, 63 5 | STYLE DS_MODALFRAME | WS_POPUP | 6 | WS_VISIBLE | WS_CAPTION | WS_SYSMENU 7 | FONT 10, "Times New Roman" 8 | BEGIN 9 | PUSHBUTTON "&Cancel", IDCANCEL, 67, 42, 50, 14 10 | CTEXT "", ID_PRINTMESSAGE, 7, 21, 172, 8 11 | END -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/CL.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/CL.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Calculate.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Calculate.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Clipboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Clipboard.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Command.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Command.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Keyboard.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Keyboard.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/List.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/List.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/MenuAccelarator.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/MenuAccelarator.res -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Paragraph.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Paragraph.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Position.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Position.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Print.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Print.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/PrintPreview.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/PrintPreview.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/PrintProgressDialog.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/PrintProgressDialog.res -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/PrintSetupDialog.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/PrintSetupDialog.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/PrintSetupDialog.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/PrintSetupDialog.res -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Set.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Set.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Template.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Template.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Unit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Unit.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/UnitScroll.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/UnitScroll.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/UnitScrollZoom.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/UnitScrollZoom.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Word.exe.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Word.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v100:false 2 | Release|Win32|C:\Documents and Settings\sbr02\My Documents\Dropbox\C Windows Programming\| 3 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/Word.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/Word.obj -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/cl.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/cl.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/link-cvtres.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/link-cvtres.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/link-cvtres.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/link-cvtres.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/link.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/link.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/link.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/mt.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/mt.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/mt.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/mt.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/mt.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/mt.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/rc.command.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/rc.read.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/rc.write.1.tlog -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Release/vc100.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Release/vc100.pdb -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Setup.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Setup.xlsx -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/SmallWindows.ini: -------------------------------------------------------------------------------- 1 | [Word] 2 | m_nextFont_Height=10 3 | m_nextFont_Italic=0 4 | m_nextFont_Bold=400 5 | m_nextFont_Underline=0 6 | m_nextFont_Name=Times New Roman 7 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Word.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Word.aps -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/Word.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/Word.docx -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/WordApplication.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "Template.h" 3 | #include "PrintSetupDialog.h" 4 | #include "PrintMessageDialog.h" 5 | #include "PrintPreviewDocument.h" 6 | #include "Position.h" 7 | #include "CharInfo.h" 8 | #include "Paragraph.h" 9 | #include "WordDocument.h" 10 | 11 | /* 12 | Window* MainWindow() { 13 | return (new WordDocument()); 14 | } 15 | */ -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/res/Toolbar.bmp -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/res/Word.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/res/Word.ico -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/res/Word.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // Word.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /Cpp Windows Programming/Word/res/WordDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Cpp Windows Programming/Word/res/WordDoc.ico -------------------------------------------------------------------------------- /Empty Project/EmptyProject.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Empty Project/EmptyProject.v12.suo -------------------------------------------------------------------------------- /Empty Project/EmptyProject/Debug/EmptyProject.log: -------------------------------------------------------------------------------- 1 | Build started 2016-08-14 13:11:39. 2 | 3 | Build succeeded. 4 | 5 | Time Elapsed 00:00:00.10 6 | -------------------------------------------------------------------------------- /Empty Project/EmptyProject/EmptyWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "EmptyWindow.h" 3 | 4 | EmptyWindow::EmptyWindow(WindowShow windowShow) 5 | :Window(LogicalWithoutScroll) { 6 | // Empty. 7 | } -------------------------------------------------------------------------------- /Empty Project/EmptyProject/EmptyWindow.h: -------------------------------------------------------------------------------- 1 | class EmptyWindow : public Window { 2 | public: 3 | EmptyWindow(WindowShow windowShow); 4 | }; 5 | -------------------------------------------------------------------------------- /Empty Project/EmptyProject/MainWindow.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows\\SmallWindows.h" 2 | #include "EmptyWindow.h" 3 | 4 | void MainWindow(vector /* argumentList */, 5 | WindowShow windowShow) { 6 | Application::ApplicationName() = TEXT("Empty"); 7 | Application::MainWindowPtr() = new EmptyWindow(windowShow); 8 | } 9 | -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/ButtonControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | 3 | class ButtonControl : public Control { 4 | public: 5 | ButtonControl(Dialog* parentPtr, Point topLeft, 6 | Size controlSize, String text, int style); 7 | 8 | protected: 9 | void Check(bool check) const; 10 | bool IsChecked() const; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/CheckBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class CheckBox : public ButtonControl { 3 | public: 4 | CheckBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, bool* checkPtr); 6 | 7 | private: 8 | void OnControlInit(Dialog* dialogPtr); 9 | void OnClick(Dialog* dialogPtr); 10 | bool* checkPtr; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/GroupBox.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | GroupBox::GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :ButtonControl(parentPtr, topLeft, controlSize, 7 | text, BS_GROUPBOX) { 8 | // Empty. 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/GroupBox.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class GroupBox : public ButtonControl { 3 | public: 4 | GroupBox(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/Label.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" 2 | 3 | namespace SmallWindows { 4 | Label::Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text) 6 | :Control(parentPtr, topLeft, controlSize, 7 | TEXT("static"), text, 0) { 8 | } 9 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/Label.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class Label : public Control { 3 | public: 4 | Label(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text); 6 | }; 7 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/ListControl.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class ListControl : public Control { 3 | public: 4 | ListControl(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, int style, 6 | list textList); 7 | 8 | protected: 9 | void LoadList() const; 10 | 11 | private: 12 | list textList; 13 | }; 14 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/PushButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class PushButton : public ButtonControl { 3 | public: 4 | PushButton(Dialog* parentPtr, Point topLeft, 5 | Size controlSize, String text, 6 | VoidListener clickListener, 7 | bool default = false); 8 | void OnClick(Dialog* dialogPtr); 9 | 10 | private: 11 | VoidListener clickListener; 12 | }; 13 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/RadioButton.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | class RadioButton : public ButtonControl { 3 | public: 4 | RadioButton(Dialog* parentPtr, Point topLeft, Size size, 5 | String text, int* indexPtr, int index); 6 | void OnControlInit(Dialog* dialogPtr); 7 | void OnClick(Dialog* dialogPtr); 8 | 9 | private: 10 | int *indexPtr, index; 11 | }; 12 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Controls/TextField.cpp: -------------------------------------------------------------------------------- 1 | #include "..\\SmallWindows.h" -------------------------------------------------------------------------------- /Empty Project/SmallWindows/DynamicList.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Empty Project/SmallWindows/ListControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Empty Project/SmallWindows/ListControl.cpp -------------------------------------------------------------------------------- /Empty Project/SmallWindows/ListControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Cpp-Windows-Programming/b2b6e045c14f013f0a4e4c125576bddc0dd534f9/Empty Project/SmallWindows/ListControl.h -------------------------------------------------------------------------------- /Empty Project/SmallWindows/MainWindow.h: -------------------------------------------------------------------------------- 1 | void MainWindow(vectorargumentList, 2 | SmallWindows::WindowShow windowShow); -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Matrix.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" 2 | -------------------------------------------------------------------------------- /Empty Project/SmallWindows/SmallWindows.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Template.h: -------------------------------------------------------------------------------- 1 | namespace SmallWindows { 2 | String Template(const Document* documentPtr,String templateText, 3 | int copy = 0, int page = 0, int totalPages = 0); 4 | }; -------------------------------------------------------------------------------- /Empty Project/SmallWindows/Tree.cpp: -------------------------------------------------------------------------------- 1 | #include "SmallWindows.h" --------------------------------------------------------------------------------