VC1 - Visual C++ Core Concepts
| Categories |
Programming Training, C++ Training |
| Duration |
3 days (21 hours) |
| Pre-requisites |
Experience in other programming languages; C or C++ programming experience preferred |
|
|
|
| Courseware |
VC1-CCI-01 (196 pages) |
| Price |
$1185 |
| Notes |
The first day of this course is available separately as an overview.
|
This course provides the in-depth skills and knowledge you need to quickly and effectively develop 32-bit Windows applications with Visual C++. The course will allow you to work with key object-oriented features of the C++ programming language. Throughout the course and during practical hands-on exercises, you review, discuss and exploit key object-oriented features of C++. A valuable course for software engineers, software developers and programmers who want to build Windows-based applications using the Microsoft Foundation Class (MFC) C++ library.
Introduction
Overview
Programming in a DOS Environment
Programming in a Windows Environment
Windows Graphics Device Interface
Windows Messages
Windows Resources
The MFC Library
The Integrated Development Environment (IDE)
The MFC Library and the Application Framework
SDI and MDI Applications
The Document View Architecture
The Document Class and the View Class
The Frame Window Class
The Application Class Object
Developer Studio
AppWizard
ClassWizard
The Debugger
Source Browser
The Project Workspace
Fundamentals of Windows Programming
Creating a C Language Window
Writing a Windows Application in C
Source Code for the C_style Application
Essential Elements of the C_style Application
Two Essential Functions: WinMain() and WndProc()
Defining and Registering a Window Class
Displaying a Window
The Message "Pump
Additional Functions in the C_style Application
The WndProc() Procedure
Spy ++
Spy on Windows with Spy++
How to Run Spy++
Spy on Windows Device Coordinates
Writing an MFC Application
A Visual C++ Project
Using AppWizard to Create an MFC Application
Running AppWizard
AppWizard Steps
The Project Workspace
ClassView
FileView
ResourceView
InfoView
Examining Your Project's Files
The Application Framework
Building the Application Interface
What the Framework Does For You
The CWinApp Class
Source Code and the Framework
Displaying Text and Graphics
MFC Window Class Objects
Creating Document, Frame Window and View Objects
Understanding the Relationship Between Objects
Drawing On Screen Text and Graphics Through the View
The CView Class
Editing Source Code
The Client Area
Programming Notes on the Text Graphics Application
The CRect Object
The Device Context
Making Changes to the Text_graphics Application
CView Class Code for the Text_graphics Application
Windows Display Mapping Modes
Overview
Frame Windows and Views
The Document and the View
Mapping Display Areas
Logical Units
Device Coordinates
Windows Mapping Modes
MM_TEXT
Fixed Scale Mapping Modes
Variable Scale Mapping Modes
Manipulating the View
Changing the Window and Viewport Origins
Scrolling Views
The MFC Message Mapping System
Overview
Windows Messages
Windows Programs are Message Driven
The MESSAGE_MAP Function
Three Categories of Windows Messages
Message Handling Functions
ClassWizard
Object IDs
Adding Message Handler Functions
Displaying Text
GDI Functions and Objects
GDI Functions
GDI Objects
Color Mapping in Windows
GDI Font Objects
Functions for Displaying Text
Using the CDC Text Functions
Drawing On Screen Text with TextOut(), GetTextExtent() and DrawText().
Displaying Graphics
Derived CDC Classes
CClientDC
CWindowDC
CPaintDC
Constructors and Destructors for CDC Class Objects
Device Context "States"
GDI Drawing Objects
Constructors and Destructors for Drawing Objects
Managing Drawing Objects
Duration of GDI Selections
A Detailed Look at GDI Objects
The CPen Class
The CBrush Class
The CRgn Class
Creating Your Own Graphic Objects
One Step vs. Two Step Construction of Graphic Objects
Examples: Creating and Drawing with Graphic Objects
Using ClassView to Create Member Variables
Example: Toggling the Color of a Circle
Source Code: Toggling the Color of a Circle
Example: Toggling Between Two Shapes
A Line Drawing Application
A Simple Line Drawing Application
Two CDC Functions: MoveTo() and LineTo()
Creating a Line Drawing Application
Programming Notes on Sketch1
Member Variable: m_bDraw
Member Variable: m_savePoint
How the Application Works
Sketch1 Source Code
Bitmaps & Memory Device Contexts
Memory Processes
Sharing Memory
Virtual Memory
The Swap File
Windows Memory Mapped Files
Windows Bitmaps
The Memory Device Context
CDC::BitBlt()
CDC::StretchBlt()
CDC::PatBlt()
Capturing and Moving Graphics
Programming Notes on the TriangleBlt Application
Creating and Displaying a Triangle
Determining the Position of the Mouse with PtInRegion() and CreatePolygonRgn()
The OnTimer() Function
Relevant Source Code for TriangleBlt
Example of Line Drawing and Blitting: Sketch2
Relevant Source Code for Sketch2
Programming Notes on Sketch2