Introduction to Windows Programming with Microsoft Framework Classes (MFC) Jim Fawcett Summer 2004 Syracuse University.

Slides:



Advertisements
Similar presentations
MFC Workshop: Intro to the Document/View Architecture.
Advertisements

What’s the computer?? computer is an electronic device that stores, processes, inputs, and outputs data to produce a result.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Introduction to Microsoft Windows MFC Programming: the Application/Window Approach Lecture 4.
Exploring the Basics of Windows XP
XP Tutorial 7 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Working with Graphics Tutorial 7.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Visual C++ Lecture 11 Friday, 29 Aug Windows Graphic User Interface l Event driven programming environment l Windows graphic libraries (X11 on Unix,
WINDOWS Part 1 – Start Up Basics
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 2 Managing Libraries Folders, Files.
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
COMPREHENSIVE Windows Tutorial 7 Managing Multimedia Files.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
MFC Windows Programming: Document/View Approach More detailed notes at: 360/notes-html/class15.htm.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
C H A P T E R T E N Event-Driven Programming Programming Languages – Principles and Paradigms by Allen Tucker, Robert Noonan.
Classic Controls Trần Anh Tuấn A. Week 1 How to create a MFC project in VS 6.0 How to create a MFC project in VS 6.0 Introduction to Classic Controls.
OBJECTIVE  After completing this Lab, students will upgrade their knowledge in the field of VC++.  Students will also get the clear view about the concepts.
Microsoft Foundation Classes. What is MFC? Set of C++ classes written by MS Simplifies writing complex programs Covers many areas: – GUI – I/O – O/S interfaces.
© 2010 Pearson Education, Inc. | Publishing as Prentice Hall1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 1: Starting with Microsoft.
CITA 342 Section 2 Visual Programming. Allows the use of visual expressions (such as graphics, drawings, or animation) in the process of programming.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
Overview of Previous Lesson(s) Over View 3 Program.
Microsoft Foundation Classes
Creating cast members  Using tool palette window that can be selected from window menu.  The following objects can be created: Push buttons, Radio buttons,
Lessons Copy and Paste Text Drag and Drop Text 2-Saving Documents 3- Printing 4-Inserting Tables Modifying Page Layout Format Page Margins Insert a Blank.
Adobe Flash Professional CS5 – Illustrated Unit A: Getting Started with Adobe Flash Professional.
FIRST COURSE Exploring the Basics of Microsoft Windows Vista.
Visual Info Processing Programming Guide
Jim Fawcett CSE775 – Distributed Objects Spring 2006
Dive Into® Visual Basic 2010 Express
Chapter 14 Windows Programming with the Microsoft Foundation Classes
Word Lesson 1 Microsoft Word Basics
Introduction to Windows Programming
Appendix A Introduction to Windows 7
Document/View Architecture
SDI & MDI SDI -> Single Document Interface
Microsoft Foundation Classes MFC
Steps to Build Frame Window Recipe Application
Getting Started with Windows 10
Visual Basic Code & No.: CS 218
Chapter 2 – Introduction to the Visual Studio .NET IDE
An Introduction to Computers and Visual Basic
1. Introduction to Visual Basic
Instructor’s Guide to Teaching SolidWorks Software Lesson 1
Chapter 1: An Introduction to Visual Basic 2015
MFC Dialog Application
An Introduction to Computers and Visual Basic
INTRODUCTION TO ADOBE ILLUSTRATOR
Understand Windows Forms Applications and Console-based Applications
Lecture 4 : Windows 7 By MSc. Manar Joundy Hazar 2017
Standard Controls.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/10.
The mouse controls the movement of the pointer on your screen.
Module 1: Getting Started with Windows 95
INTRODUCTION TO ADOBE FLASH CS4
Exploring the Basics of Windows XP
Exploring the Basics of Microsoft Windows 7
Windows Tutorial 7 Managing Multimedia Files
Windows.
An Introduction to Computers and Visual Basic
Graphical User Interfaces
Chapter 4 Enhancing the Graphical User Interface
Microsoft Windows 7 Basics
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Jim Fawcett CSE681 – SW Modeling & Analysis Fall 2011
Chapter 4 Enhancing the Graphical User Interface
An Introduction to the Windows Operating System
Presentation transcript:

Introduction to Windows Programming with Microsoft Framework Classes (MFC) Jim Fawcett Summer 2004 Syracuse University

References Developing Professional Applications for Windows 95 and NT Using MFC, Marshall Brain and Lance Lovett, Prentice Hall, 1997. Now out of print. My copy is in the Science and Technology Library in Carnegie, next to Bowne Hall. Practical Visual C++ 6, Jon Bates and Tim Tompkins, Que, 1999. Currently available through Barnes & Noble, Borders, and Amazon.com. My copy is being held for you in the Science and Technology Library. Programming Windows with MFC, Jeff Prosise, Microsoft Press, 1999. This is a large, effective book, used in CSE 791 – Advanced Windows Programming, but overkill for this course. Syracuse University

Syracuse University

The Simplest Classical Windows Program Output from the MINWIN program is shown on the next slide. The program: Creates a frame window Paints a fixed text message in the window Reacts to left mouse button clicks by creating a MessageBox You will the program code, minwin.cpp, and project workspace, in folder: CoreTechnologies\WindowsProgramming\code\basicWindows Syracuse University

Syracuse University

Syracuse University

Syracuse University

The Simplest MFC based Program Output from the MFCWIN program is shown on the next slide. The program: Creates a frame window Paints a fixed text message in the window Reacts to left mouse button clicks by creating a MessageBox You will the program code, mfcwin.cpp, and project workspace, mfcwin.dsw in the folder MFCWIN in. CoreTechnologies\WindowsProgramming\code\basicWindows Syracuse University

Syracuse University

Dialog Based Applications A dialog is an opaque window, called a form, on which are embedded a collection of smaller windows called controls. The main dialog form is wrapped in a dialog class, derived from MFC’s CDialog class. Each control is a window with a self contained set of functionality that dialog designers use “as-is”, or modify in limited ways. Controls are placed on the dialog form by dragging from a palette in the dialog resource editor. Controls are hooked into the application processing by providing message handlers in the main dialog class that access the controls using CDialog::GetDlgItem(…) and CDialog::SetDlgItem(…) member functions. Syracuse University

Syracuse University

Structure of MFC Dialog based Application Syracuse University

Frame Window Applications A frame window application consists of a window that supports a large client area in which text and graphics are displayed, embedded in a frame that supports menus and perhaps some controls. All text and drawing in the client area are supported by the Graphics Device Interface Object (CGDIObject) and Device Context (CDC) classes. Most frame window applications use the Single Document Interface (SDI) or Multiple Document Interface (MDI) architectures. These follow document/view architecture structure: Documents provide all the support for managing the program’s data, including reading and writing from persistent storage. Views provide all the support for displaying one or more views of the data and most user interactions with the program. Syracuse University

Syracuse University

Syracuse University

Syracuse University

End of Presentation Syracuse University