Visual C++ and MFC Fundamentals Table of Contents© FunctionX, Inc. 3
Table of Contents
TABLE OF FIGURES...............................................................................................13
CHAPTER 1: INTRODUCTION TO MICROSOFT VISUAL C++...........15
1.1
The Microsoft Visual C++ Environment.....................................................16
1.1.1
Introduction..............................................................................................16
1.1.2
The Integrated Development Environment........................................17
1.1.3
The Title Bar............................................................................................17
1.1.4
The Main Menu.......................................................................................18
1.1.5
The Toolbars............................................................................................21
1.1.6
The Studio Windows..............................................................................23
1.2
Floatable and Dockable Windows................................................................26
1.2.1
Description...............................................................................................26
1.3
Visual C++ Projects and Files.......................................................................27
1.3.1
Creating a New Project..........................................................................27
1.3.2
Creating Files...........................................................................................28
1.3.3
Adding Existing Files to a Project.......................................................29
1.3.4
Adding Classes........................................................................................30
1.3.5
Opening Files...........................................................................................31
1.3.6
Opening Existing Projects.....................................................................33
1.4
Getting Help.....................................................................................................34
1.4.1
Online Help..............................................................................................34
1.4.2
Other Help Types....................................................................................35
CHAPTER 2: INTRODUCTION TO MFC.......................................................37
2.1
The Microsoft Foundation Class Library....................................................38
2.1.1
Introduction..............................................................................................38
2.1.2
CObject, the Ancestor............................................................................38
2.1.3
The Basic Application............................................................................39
2.2
Frames Fundamentals.....................................................................................42
2.2.1
Introduction..............................................................................................43
2.2.2
Reference to the Main Window............................................................44
2.2.3
Introduction to Macros...........................................................................47
2.2.4
Windows Styles.......................................................................................48
2.2.5
Windows Location..................................................................................51
2.2.6
Windows Size..........................................................................................53
2.2.7
Windows Dimensions............................................................................54
2.2.8
Windows Parents....................................................................................57
2.3
Message Boxes.................................................................................................58
2.3.1
Definition.................................................................................................58
2.3.2
Message Box Creation...........................................................................59
2.3.3
Message Box Implementation..............................................................59
2.3.4
The Box’ Message..................................................................................60
2.3.5
The Message’ Title.................................................................................62
2.3.6
Message Box Options............................................................................63
2.3.7
The Message’s Return Value................................................................66
CHAPTER 3: WINDOWS RESOURCES..........................................................69