Intro MFC
Intro MFC
and
Visual C++ .Net
Introduction
Masoud Milani
School of Computer Science
Florida International University
Miami, FL 33199
INTRODUCTION
This course covers the fundamental
concepts and techniques necessary to
write Windows-based interactive
programs
We will use the Visual Studio, Visual
C++ .Net and Microsoft Foundation
Classes to discuss the above concepts
INTRODUCTION
Contents:
Events and Event Handling
Windows, Dialogs and Controls
Menus and Toolbars
Application Organization
Document/View Architecture
REQUIREMENTS
Working knowledge of
C++
including:
Classes
Inheritance
Virtual functions
Late binding
Template classes
Introduction to Windows Programming Using MFC and Visual C++ .Net
Introduction
COURSE RESOURCES
Web address:
http://www.cs.fiu.edu/~milani/cop4226
Here you will find class notes, class presentations,
assignments, class bulletin board, various
announcements and dates and more
Text Book:
I am not using any particular text book. There will
be plenty of reading material on the course web
site and MSDN libraries have an extensive set of
online manuals
GRADING
Exam1
30%
Exam2
30%
COURSE OVERVIEW
Introduction to Visual Studio
Projects
Views
Wizards
Different Application Types
Resources
Editors
MSDN Library
Introduction to Windows Programming Using MFC and Visual C++ .Net
Introduction
COURSE OVERVIEW
Introduction to Windows
Kernel
GDI
User
Window Classes
Events and Messages
Message Loop
Window Procedures
Introduction to Windows Programming Using MFC and Visual C++ .Net
Introduction
COURSE OVERVIEW
Microsoft Foundation Classes
Message Boxes
Controls
Push Buttons
Radio Buttons
Check Boxes
Slider Controls
Data Exchange
Control States
Introduction to Windows Programming Using MFC and Visual C++ .Net
Introduction
COURSE OVERVIEW
Multi Document Applications
Application
ChildFrame
MainFrame
Document
View
Menus
Toolbars, Tooltips
Introduction to Windows Programming Using MFC and Visual C++ .Net
Introduction
10
COURSE OVERVIEW
Graphical Device Interface
Device Contexts
Mapping Modes, Physical and Logical Coordinates
Fonts
Context Menus
Property Sheets
Printing and Print Preview
Splash Screens
Multi-Threaded Programming
11
VISUAL STUDIO
The Visual Studio is an integrated
environment for developing Windows
applications
12
VISUAL STUDIO
An application consists of many parts that
together make up a project:
Classes
Resources
Dialogs
Menus
Icons
Toolbars
13
APPLICATION TYPES
Dialog Based Application
The main window is a Dialog Box
Performs a well defined task
Calculator
14
APPLICATION TYPES
Single Document Application
Allows opening of only one document at
any given time
Notepad
15
APPLICATION TYPES
Multiple Document Application
Allows opening of more than one
document at any given time
Each document is displayed within a
Childframe which is in turn contained
within the client area of the MainFrame
Word
16
WIZARDS
Wizards assist programmers by
constructing a minimal application that is
then enhanced by the programmer
MFC AppWizard
17
WIZARDS
AppWizard is a tool that based on user
specifications, writes a minimal
Windows application using MFC
18
19
FILE TYPES
File Types
20
PROJECT TYPES
21
MFC AppWizard
22
MFC AppWizard
23
VISUAL STUDIO
Different parts of the Project are
presented in different views:
Class View
Resource View
Solution View
24
BUILDING A PROJECT
Building a project requires compiling all
files that have been changed since last
build and then linking them
25
CLASS VIEW
Presents and allows the projects
underlying classes
26
RESOURCE VIEW
Presents and allows
manipulation the
projects resources
27
SOLUTION VIEW
Presents and allows direct manipulation of
the projects files (learn not to use it!)
Workspace files
28
MSDN LIBRARY
Presents various
documentation
29