C++ MFCs CS 123/CS 231. MFC: Writing Applications for Windows zClasses in MFC make up an application framework zFramework defines the skeleton of an application.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.
1 Microsoft Access 2002 Tutorial 9 – Automating Tasks With Macros.
MFC Workshop: Intro to the Document/View Architecture.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Automating Tasks With Macros
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Intro to ArcMap Customization with Visual Basic  Create your own toolbars, buttons, interactive tools, and programs  Runs behind the scenes in ArcMap.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
MENUS AND THE MENU EDITOR Elements of a Menu Menu bar Menu title Separator bar Menu items.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
WORKING WITH FILES, MENUS AND DATABASES IN VISUAL BASIC BY V. V. SUBRAHMANYAM.
Printing and Page Formatting ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
Access Tutorial 10 Automating Tasks with Macros
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Creating a Web Site to Gather Data and Conduct Research.
Visual C++ Lecture 11 Friday, 29 Aug Windows Graphic User Interface l Event driven programming environment l Windows graphic libraries (X11 on Unix,
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Visual Basic 101.
BZUPAGES.COM Visual Programming Lecture – 5 Miss. SADAF MAJEED SIAL Computer Science Department Bahauddin Zakariya University Multan.
Object Oriented Programming Dr. Ennis-Cole CECS 5100.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Integrated Development Environment (IDE)
Masoud Milani School of Computer Science Florida International University Miami, FL Windows Programming Using MFC and.
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.
Overview of Previous Lesson(s) Over View  Microsoft Foundation Classes (MFC)  A set of predefined classes upon which Windows programming with Visual.
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.
Create a Simple MFC Application Automatically How to use the application wizard.
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.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
BZUPAGES.COM Visual Programming Lecture – 6- 7 Miss. SADAF MAJEED SIAL Computer Science Department Bahauddin Zakariya University Multan.
Lection №5 Modern integrated development environment.
ActiveX Controls ActiveX Controls vs Ordinary Windows Controls Installing ActiveX Controls The Calendar Control ActiveX Control Container Programming Create.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
CITA 342 Section 2 Visual Programming. Allows the use of visual expressions (such as graphics, drawings, or animation) in the process of programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Java Beans. Definitions A reusable software component that can be manipulated visually in a ‘builder tool’. (from JavaBean Specification) The JavaBeans.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Chapter 23. Copyright 2003, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-2 LINKS TO OBJECTIVES Record, Run, Pause, and Delete Macros Record, Run,
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Understanding Desktop Applications Lesson 5. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Windows Forms Applications Understand.
INFORMATION SYSTEM – SOFTWARE TOPIC: GRAPHICAL USER INTERFACE.
Techniques for List Creation (2) Data formatting and control level processing Basics for Interactive Lists Detail lists The Program Interface Interactive.
Overview of Previous Lesson(s) Over View 3 Program.
Understanding Desktop Applications Lesson 5. Understanding Windows Forms Applications Windows Forms applications are smart client applications consisting.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Microsoft Foundation Classes
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Part II Document/View Architecture. Chapter 9 Documents, Views, and the Single Document Interface.
Creating ActiveX Controls at runtime If you need to create an ActiveX Control at runtime without a resource template entry, follow the programming steps.
Document/View Architecture
Message Handling in MFC
Microsoft Foundation Classes MFC
Steps to Build Frame Window Recipe Application
Visual Basic Code & No.: CS 218
1. Introduction to Visual Basic
MFC Dialog Application
Microsoft Visual Studio
MFC Document/View programs
Chapter 15: GUI Applications & Event-Driven Programming
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

C++ MFCs CS 123/CS 231

MFC: Writing Applications for Windows zClasses in MFC make up an application framework zFramework defines the skeleton of an application and supplies standard user-interface implementation that can be placed on the skeleton zAdditional programming task: fill in the skeleton with things specific to your application

SDI and MDI zSingle Document Interface (SDI) Õallows only one open document frame window at a time zMultiple Document Interface (MDI) Õallows multiple document frame windows to be open in the same instance of an application

Tools zAppWizard creates files for starter application zResource editors to design UI elements visually zClass Wizard to connect these elements to code zClass Library to implement application specific logic

Document, Views and Framework zDocument – data object with which the user interacts in an editing session Õderived from CDocument zView – window object through which the user interacts with a document Õderived from CView zFrame Window – views are displayed inside document fram windows Õderived from CFrameWnd

Document, Views and Framework zDocument Template – orchestrates creation of documents, views, and frame windows Õderived from CDocTemplate Õcreates and manages all documents of 1 type zApplication Object – controls all of the objects above and specifies application behavior such as initialization and cleanup zThread Objects – for multithreaded application Õderived from CWinThread

Objects in a Running SDI Application Tool Bar View Status Bar Application Object Document Template Document Main Frame Window

GUI Programming zUse the AppWizard to create an MFC Application ÕFor project type, select MFC AppWizard (exe) ÕCreates files that contain the application, document, view, and frame window classes; standard resources, including menus and optional toolbar; other required windows files; optional.RTF file containing standard windows help topics

GUI Programming zUse ClassWizard to Manage Classes and Windows Messages ÕCreate handler functions for windows messages and commands ÕCreate and manage classes ÕCreate class member variables ÕCreate OLE Automation methods and properties ÕCreate database classes, etc

GUI Programming zUse Resource Editors to Create and Edit Resources ÕCreate and edit menus, dialog boxes, custom controls, accelarator keys, bitmaps, icons, cursors, …

Messages zApplications running windows are message driven zUser actions and events cause Windows to send messages to windows in the program zEx: Mouse actions Õmouse click sends WM_LBUTTONDOWN Õrelease sends WM_LBUTTONUP

Messages zLarge part of programming task is choosing which messages to map to which objects, and implement the mapping zClass Wizard will create empty message handler member functions zUse source editor to implement the body of the handler