Masoud Milani School of Computer Science Florida International University Miami, FL Windows Programming Using MFC and.

Slides:



Advertisements
Similar presentations
Masoud Milani School of Computer Science Florida International University Miami, FL Windows Programming Using MFC and.
Advertisements

1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Using Macros and Visual Basic for Applications (VBA) with Excel
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Appendix B: Customizing In this unit… ► Review ► Overview ► Adding, Removing Buttons ► Changing Button Properties ► Visual Basic.
 2002 Prentice Hall. All rights reserved. Chapter 2 - Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Overview of the Visual Studio.NET.
MENUS AND THE MENU EDITOR Elements of a Menu Menu bar Menu title Separator bar Menu items.
Creating Menu. Objectives Create a menu system for a form –Create a menu –Create a menu titles –Create a menu items –Create a submenu –Modify menu –Edit.
8/4/2015Word Differences Between Word 2003 to 2007 Purdue University Calumet Word 2003 Word 2007.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Introduction to Visual Basic Chulantha Kulasekere.
Introduction to Microsoft Word Microsoft Word is a word processor designed by Microsoft. A word processor is a computer application used for the production.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Access Tutorial 10 Automating Tasks with Macros
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Chapter 8: String Manipulation
Programming with Microsoft Visual Basic th Edition
CHAPTER 6 Loop Structures.
Tutorial 11 Introduction to Visual Basic zLanguage developed for special-purpose Windows applications – 1991 zUses IDE – Integrated Development Environment.
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
Menus,MonthCalender, DateTimePicker, MDI,Tree View, List View,
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Typing Application Introducing Keyboard Events, Menus, Dialogs and the Dictionary.
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.
1 Working with Menus and Dialog Boxes. 2 Objectives You will be able to Create and edit menus for Windows Forms applications. Write code to handle menu.
Introduction To Microsoft Word C Apply intermediate skills in utilizing word processing software Word processing programs make the writing process.
MFC Windows Programming: Document/View Approach More detailed notes at: 360/notes-html/class15.htm.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
2. Recording a Macro. Macro Recording Select Record Macro from the Macro file menu and the dialog box opposite will appear Your macro will require a name.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
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.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
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.
Visual Basic.NET BASICS Lesson 3 Events and Code.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Unit 5, Lesson 1 Working with Databases. Objectives Identify the parts of the Access screen. Identify the parts of the Access screen. Understand the purpose.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
 The ribbon is the primary form of navigation in the Microsoft Office 2007 system.  There are seven Tabs on the Ribbon, more (contextual) tabs will.
Copyright © Curt Hill More Components Varying the input of Dev-C++ Windows Programs.
Chapter 23. Copyright 2003, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-2 LINKS TO OBJECTIVES Record, Run, Pause, and Delete Macros Record, Run,
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
Word Processor Version.2. Methods Visual Basic is –Object Oriented –Event Driven Objects –Properties –Methods.
Microsoft Visual Basic 2005 BASICS Lesson 3 Events and Code.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
1NetBeans Tutorial Using the “Properties” menu, name the List “List1” and the button “Button1”. NetBeans Tutorial6.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Compunet Corporation Programming with Visual Basic.NET Working with Menus and Dialog Boxes Week 14 Tariq Aziz and Kevin Jones.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Open Office Writer Introduction AOSS _ Course material AOSS Master training workshop Singapore 2007.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
Menu & Clipboard Menu Cut / Copy / Paste. Menus Created in the Menu Editor Can contain menu titles, menu items, separator bars, submenu titles, and submenu.
Message Handling in MFC
Steps to Build Frame Window Recipe Application
Visual Basic Code & No.: CS 218
1. Introduction to Visual Basic
MFC Dialog Application
Microsoft Excel 2003 Illustrated Complete
Debugging Visual Basic Programs
Presentation transcript:

Masoud Milani School of Computer Science Florida International University Miami, FL Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 2 Menus ZAppWizard creates two menu resources WIDR_MAINFRAME CThe mainFrame menu is displayed when there is no childFrame IDR_MAINFRAME

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 3 Menus WIDR_"DocType"Type CThe mainFrame menu when there is at least one childFrame IDR_IntroType

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 4 Menus ZMenus are created or modified using the Menu Editor Menu resources Place holder for new menu

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 5 Menus ZTo create a new menu WType a name in a menu place holder WSet the menu's properties

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 6 Menus ZDecide which class must handle this menu command WDocument ? WView? WMainframe? WApp? WChildFrame? ZUse the class wizard to write a handler for the menu's COMMAND message

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 7 Menus

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 8 Menus

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 9 Menu Prompt ZMenu prompt is the message that appears inside the status bar when the mouse is on the menu Menu Prompt ZEnter menu's prompt in its property box

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 10 Short Cuts ZFor Alt key short cut, put & in front of a letter in the menu's caption New Men&u

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 11 Short Cuts ZEnter other short cuts in the Accelerator Table Place holder for a new accelerator

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 12 Short Cut Properties

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 13 Menu State ZA menu can be in one of the following states: WEnabled CEnabled(TRUE); WDisabled CEnable(FALSE); WChecked CSetCheck(TRUE); WUnchecked CSetCheck(FALSE);

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 14 Menu State ZThe state of a menu is set in the handler for the menu UPDATE_COMMAND_UI message void CIntroView::OnUpdateEditNew(CCmdUI* pCmdUI) { // TODO: Add your command update UI handler code here pCmdUI->SetCheck(TRUE); }

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 15 Command Routing ZMenus and Tools bars are a part of the MainFrame. ZWho gets the menu commands? WMenu commands are routed to the following objects to a find a event handler CView CDocument CChildFrame CMainFrame CApplication

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 16 ToolBars ZSimilar to Menus ZCan have the same ID as a menu item ZCan have Tool Tip Tool Tip

Introduction to Windows Programming Using MFC and Visual C ++.Net Menus and Tool Bars 17 ToolBars ZA Toolbar Button's Tool Tip is also entered in its prompt property box ZPrompt and Tool Tip strings are seperated by \n