Menu Messages  Besides the all-important WM_COMMAND message, window provides five other messages at various stages of menu selection:  WM_SYSCOMMAND.

Slides:



Advertisements
Similar presentations
Intro to Computers!.
Advertisements

If you press this you attach a files. This window will come up when the attach file button is pressed. You can then press browse and pick a file that.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 14: Event-Driven Programming with Graphical User Interfaces
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
More on Creating GUIs in Java using Swing David Meredith Aalborg University.
Beginning Programming with the Visual Studio.NET Environment.
Programming with Microsoft Visual Basic th Edition
Visual Basic Chapter 1 Mr. Wangler.
2013.  Modify QuickBooks Preferences  Customize QuickBooks Menus and Windows  Customize the Icon Bar and Display Settings  Use the Item List and Other.
Quick Reference Guide New functionalities within your hotelcareer company center.
People © 2013 The Sleeter Group All rights reserved. Intuit, the Intuit logo and QuickBooks, among others, are registered trademarks of Intuit Inc. Other.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
Menus,MonthCalender, DateTimePicker, MDI,Tree View, List View,
Menus,MonthCalender, DateTimePicker, MDI,Tree View, List View,
Lập trình trên Windows với Microsoft®.NET Giảng viên : Hồ Hoàn Kiếm.
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.
Prepared by Fareeha Lecturer DCS IIUI 1 Windows API.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Introduction To Microsoft Word C Apply intermediate skills in utilizing word processing software Word processing programs make the writing process.
Visual Studio.NET Part 2 dbg --- Using the Integrated Development Environment.
Information Technology Word Processing. Word Processing is the preparation of documents such as letters, reports, memos, books, or any other type of correspondences.
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.
 Definition  Components  Advantages  Limitations Contents  Meaning of Editing Meaning of Editing  Editing Cell Contents Editing Cell Contents 
Chapter 9 - VB.Net by Schneider1 Chapter 9 – Additional Controls and Objects 9.1 List Boxes, Combo Boxes, and the File-Opening Control The List Box Control.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Direct3D Workshop November 17, 2005 Workshop by Geoff Cagle Presented by Players 2 Professionals.
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
Teach Yourself Windows 95 Module 4: Using Microsoft Exchange for Faxes and .
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
Computer Basics Lesson 2 Using Windows and the Start Menu 1.
GAM666 – Introduction To Game Programming You must use special libraries (aka APIs – application programming interfaces) to make something other than a.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
FIX Eye FIX Eye Getting started: The guide EPAM Systems B2BITS.
C# GUI - Basics. Objectives.NET supports two types: WinForms, traditional, desktop GUI apps. WebForms – newer, for Web apps. Visual Studio.NET supports.
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.
Exchange 2013 Web App (OWA) User Guide. Table of Contents How to Logon Opening View Navigation Mail Contacts Calendar 2.
Copyright © Curt Hill More Components Varying the input of Dev-C++ Windows Programs.
Registering a window class Windows allows many styles of window to be created. To tell Windows to create a window as you want it you need to define a class.
Dialog boxes Modal and modeless dialog boxes Displaying about dialog box: case WM_COMMAND : switch (LOWORD (wParam)) { case IDM_APP_ABOUT : DialogBox (hInstance,
Menus Menus provide groups of related commands for windows applications Menu, menu items, submenus A menu item that contains a submenu is considered to.
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.
Event Handling Tonga Institute of Higher Education.
Programming Input Devices. Getting the device state Schemes for processing input – Polling – Callbacks Ways to intercept messages from input devices –
Events Part I Mouse Events. Learning Objectives By the end of this lecture, you should be able to: – Understand what is meant by an ‘event’ – Appreciate.
Windows Basics Computers 1. Windows Desktop What is the desktop? What is the desktop? –On-screen work area on which windows, icons, menus, and dialog.
Windows 95/NT/XP. What is Windows 95/NT/XP n A program that sets up an environment for you to work in on your computer, based on colorful pictures (icons)
Lecture 10 Using Interface Builder to create Mac Applications.
The WM_NCHITTEST Message  This is an internal message used by Windows for generating all the other mouse messages.  Though it almost never needs to be.
Menus  Menus is a feature which is common to almost every windows applications. It is the one of the most common user interface elements around.  Windows.
Compunet Corporation Programming with Visual Basic.NET Working with Menus and Dialog Boxes Week 14 Tariq Aziz and Kevin Jones.
1 /22 Accessing TaxWise Online © 2006, Universal Tax Systems, Inc. All Rights Reserved. Accessing TaxWise Online Objectives –In this chapter you will learn.
New Features in Release 5.0 (August 1, 2005). 2 Release 5.0 New Features Redesigned Navigation Experience Header Bar Updates My Profile Link Added Logout.
XP New Perspectives on Microsoft Windows XP Tutorial 1 1 Microsoft Windows XP Creating a Web Site Tutorial 1.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
4. Search button should work only if there is a key word.
Windows Programming Lecture 11
Windows Programming Lecture 09.
1. Introduction to Visual Basic
The mouse controls the movement of the pointer on your screen.
REVIEW FOR WINDOWS APPLICATIONS TEST ON FRIDAY- SEPT. 7, 2012
C++ programming in Windows environment
ACME Automated Courseware Management Environment
6. WinForms 2003 C# GUI - Basics.
Creating and Sending Saved Messages
Presentation transcript:

Menu Messages  Besides the all-important WM_COMMAND message, window provides five other messages at various stages of menu selection:  WM_SYSCOMMAND  WM_INITMENU  WM_ININMENUPOPUP  WM_MENUSELECT  WM_MENUCHAR Programs may pass these to DefWindowProc() or intercept them if they wish to take any action. 1.WM_SYSCOMMAND:- this is very important window message that arrives in a variety of situations. It is generated whenever user clicks on maximize or minimize icons in the caption bar, double click the caption bar or open up the system menu.

Contd….  WM_SYSCOMMAND message has been sent, while lparam contains mouse co-ordinates if a mouse click is responsible for producing the event. 2. WM_INITMENU:- this message arrives just before the window’s top-level menu is about to be activated. This happens when users click on any of the top-level menu’s options, or a corresponding hotkey is pressed.  this gives the program an opportunity to modify the top- level menu before it is activated.

contd 3. WM_INITMENUPOPUP:- this is very commonly intercepted messages. It arrives in two distinct settings:- just before the activation of system menu, and just before the activation of any otherpopup menu.  The message paramenters are as follow:-  wParam:- handle of the popup menu being activated.  lParam LOWORD :- it contains the index of the popup menu in the top-level menu.  lParam HIWORD:- system menu flag. A non-zero value indicates that the system menu is being activated. While zero signifies the operating of some other popup menu.

Contd… 4. WM_MENUSELECT:- this messsage indicates that a menu is open, and the user has selected a menu option. This message does not necessarily imply that the particular WM_COMMAND message must arrive: the user could change his selection before he presses ENTER or double clicks the mouse. The message parameters are:-  wParam:-Menu item ID, or popup menu handle, as applicable.  lParam LOWORD:- contains the menu flags associated with the currently selected menu option.  lParam HIWORD:- contains the system menu handle.

5. WM_MENUCHAR:- this is an error-handling messsage from windows, which is issued whenever an invalid hotkey is pressed by the user.  Menu Templates:- This is an easiest way to create windows menus. It involves no programming, because window automatically makes all the API function calls required to create and fill up the menu. This method involves writing an ASCII script using a reserved words and placing it into the application’s “resource script file”, which has the extension(.RC). This script is then compiled by the resource compiler and then embedded into the.EXE file, where the windows can load it at runtime.

A menu template BigdinnerMenu Menu { popup “soup” { MENUITEM “Tomato”, 1 MENUITEM “vegetable ”, 2 MENUITEM “chicken ”, 3 }

Using system Menu:- hmenu=GetSystemMenu(hwnd, FALSE); Messages from the system menu:- WM_SYSCOMMAND