Jim Fawcett CSE681 – SW Modeling & Analysis Fall 2011

Slides:



Advertisements
Similar presentations
© 2011 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Advertisements

What is a Dialog box? A Dialog box is a window or “form” that contains other child windows or “controls” that have a specific appearances and pre-defined.
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,
Computer Science 5 Fall 2004 Module 3 10/1/2004 7:57 AM.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
Visual Basic Prototyping Visual Basic uses both a Visual Editor and is Code Based. With several simple lines of code, Visual Basic will navigate between.
Computer Science 5 Fall 2004 Module 3 6/28/2015 8:59:45 PM6/28/2015 8:59:45 PM6/28/2015 8:59:45 PM.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Computer Science 5 Spring 2007 Module 3 7/12/2015 1:55:57 PM7/12/2015 1:55:57 PM7/12/2015 1:55:57 PM.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Web Feature Creating Web Pages Using Word.
Visual Basic.net IDE. Integrated Development Environment.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Chapter 12: Using Controls. Examining the IDE’s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton.
Understanding Web Sites. What is a Web Site A collection of Web pages which you can view on the Internet Contains text, graphics, sound, and video to.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Assignment #1 Advanced Computer Programming.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
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 to Windows Programming
GAM666 – Introduction To Game Programming You must use special libraries (aka APIs – application programming interfaces) to make something other than a.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Lecture 7 Menu, controls, scroll bars. Menu Menu item sends WM_COMMAND message to the application window Menu is attached to window when the window is.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Welcome to PowerPoint for Beginners In-Tech Training Elementary School Teachers Day 2 January 13 and 14, 2003.
Win32 Controls & ActiveX Integration In this presentation… –Introduction to the new Win32 controls. What they are? How they are enabled? Potential uses.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Graphical User Interface Components Version 1.1. Obectives Students should understand how to use these basic Form components to create a Graphical User.
Flash 1. Document Properties Set frame rate and dimensions of project Set frame rate and dimensions of project (default width=550 and height=400)
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Our good old first Win32 programme of lecture 8 #include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
Dive Into® Visual Basic 2010 Express
Introduction to Windows Programming
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Windows Programming Lecture 09.
3.01 Apply Controls Associated With Visual Studio Form
Understanding Web Sites
3.01 Apply Controls Associated With Visual Studio Form
Working with Dialogs and Controls
Introduction to Windows Programming with Microsoft Framework Classes (MFC) Jim Fawcett Summer 2004 Syracuse University.
Getting Started with Dreamweaver
Understand Windows Forms Applications and Console-based Applications
Multi-form applications and dialogs
Chapter 2 – Introduction to the Visual Studio .NET IDE
Creating a Windows Forms User Interface
COMMON CONTROLS A control is a child window that an application uses in conjunction with another window to enable user interaction. Controls are most often.
Windows Programming Lecture 12
Windows Programming Lecture 15
Programming with Microsoft Visual Basic 2008 Fourth Edition
Microsoft Windows 7 Basics
Presentation transcript:

Jim Fawcett CSE681 – SW Modeling & Analysis Fall 2011 Win32 Windows Jim Fawcett CSE681 – SW Modeling & Analysis Fall 2011

Topics References Introduction Simplest Win32 Windows Program Structure of Windows Application Controls Dialogs

References Catch22 Tutorials WinProg Windows_Programming Orphan Tutorial Simple Windows Code Fragments Subclassing Windows and Messages Dialogs Controls User Controls Common Controls Windows Shell Browser Control

Windows Event Processing

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 find the program code, minwin.cpp, and project solution, minwin.sln in the folder MINWIN. www.ecs.syr.edu/faculty/fawcett/handouts/CoreTechnologies/WindowsProgramming/code/basicWindows/Minwin

Structure of a Win32 Windows Program

Data Types Windows Type Equivalent LPVOID void* LPSTR wchar_t* TCHAR char or wchar_t LPTSTR char* or wchar_t* DWORD unsigned 32 bit integer WORD unsigned 16 bit integer HANDLE Windows handle HINSTANCE Handle to program instance HMENU Menu handle WPARAM 16 bit parameter LPARAM 32 bit parameter

Controls Control Library Comments User Controls Windows.h User32.dll Child window Common Controls CommCtl.dll COM based Browser Control MSHTML.h SHDOCVW.dll MSHTML.dll Common Dialogs Commdlg.h Comdlg32.dll

User Controls User controls are: Most used messages sent to control: Button, ComboBox, Edit, ListBox, RichEdit, RichEdit_Class, Scrollbar, Static Most used messages sent to control: WM_GETTEXT, WM_GETTEXTLENGTH, WM_SETTEXT, WM_SETFONT, WM_SETFOCUS, WM_KILLFOCUS Notifications – messages sent by control to parent: WM_COMMAND LPARAM handle to control window WPARAM HIWORD(wParam): control-defined notification code LOWORD(wParam): control Identifier

Common Controls Common Controls are: Animation, Buttons, Calendar, ComboBoxes, Date and Time Picker, Drag List Boxes, Flat Scroll Bars, Image List, IP Address, List Boxes, ListView, Progress Bar, Property Sheets, Rebar, Rich Edit, Scroll Bars, Status Bars, Toolbar, ToolTip, Trackbar, TreeView, Up-Down Messages: WM_NOTIFY, … Notifications: NM_CHAR, NM_CLICK, …

Dialogs Dialogs come in two flavors: Modal Dialogs Non-Modal Dialogs Has own message loop and service thread Does not relinquish focus until closed Results are retrieved at closure Non-Modal Dialogs Runs on parent’s thread Provides callback function for interaction with parent Does not hold onto focus Results may be retrieved while dialog is open

Frames Frame Window: Windows Functions Has canvas that covers most of the window, called the client area: Canvas typically used for drawing and text, but can host controls as well. Designer has to provide all hosting infrastructure at each control site on canvas. Frame supports menus, toolbars, and status bars. Can host Dialogs, created by menu clicks. Visual Studio provides resource editors for menus and dialogs, even for Win32 applications. Windows Functions

Common Dialogs Common Dialogs are: Color, Find, Font, OpenFile, PageSetup, Print, PrintPropertySheet, Replace, SaveFile Messages Notifications

End of Presentation