SlideShare a Scribd company logo
1 of 12
Use and Understanding Of
MESSAGE_MAP along with Message
Handlers
Presented By :
Sheth Shraddha(50)
Tamhane Vaidehi(54)
Use of MESSAGE_MAP
 Windows Operating Systems – A Message
Driven System
 Example : Mouse click, Printer signal
 MESSAGE_MAP supports Message Driven
Programming in MFC.
 Class Member Functions are used.
Role Of Class Member Functions
 To execute commands
 Messages are directed to class member
functions by the use of macros in MFC.
 Convenience
Components Of MESSAGE_MAP
 Declaration
 Beginning
 Termination
Declaration
 DECLARE_MESSAGE_MAP
– Declared in the class which allows to respond to messages.
– A class is eligible to execute a message map if it is derived
from CCmdTarget or a class which is derived from
CCmdTarget.
– A class can have only one message map.
– It should be the last member declared within a class.
– If not then next member should be preceded by an access
specifier.
BEGINNING
 BEGIN_MESSAGE_MAP
– Parameters
 Class name which implements the message map.
 Base class
– Succeeded by macros which represent
messages.
Termination
 END_MESSAGE_MAP
– Messages macros are succeeded by
END_MESSAGE_MAP
Message Handlers
 To respond to a message one must add a
message handler.
 Members of CWnd class.
 Can be overridden.
Naming Pattern Of Message Handlers
 Start with “On”.
 Succeeded by message name.
 Should be in camel case.
 Ex:
– Macro: WM_SIZE
– Handler: OnSize()
ExampleExample
References
Thank You!!

More Related Content

Viewers also liked

Content Strategy: The Key to Effective Web Content
Content Strategy: The Key to Effective Web ContentContent Strategy: The Key to Effective Web Content
Content Strategy: The Key to Effective Web ContentRick Allen
 
Creating Your Organization's Social Media Strategy Map
Creating Your Organization's Social Media Strategy MapCreating Your Organization's Social Media Strategy Map
Creating Your Organization's Social Media Strategy MapBeth Kanter
 
The Truth About Messaging Hierarchy
The Truth About Messaging HierarchyThe Truth About Messaging Hierarchy
The Truth About Messaging Hierarchyjoanna_wiebe
 
Introduction to ESB Architecture and Message Flow
Introduction to ESB Architecture and Message Flow Introduction to ESB Architecture and Message Flow
Introduction to ESB Architecture and Message Flow WSO2
 
Essential Nonprofit Communications Plan
Essential Nonprofit Communications PlanEssential Nonprofit Communications Plan
Essential Nonprofit Communications PlanTheGivingPartner
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systemsSHATHAN
 
Strategic Communications Planning - A Free eBook
Strategic Communications Planning - A Free eBookStrategic Communications Planning - A Free eBook
Strategic Communications Planning - A Free eBookDave Fleet
 
Developing a Communications Strategy for Your Nonprofit
Developing a Communications Strategy for Your NonprofitDeveloping a Communications Strategy for Your Nonprofit
Developing a Communications Strategy for Your NonprofitBig Duck
 
LinkedIn Communication Architecture
LinkedIn Communication ArchitectureLinkedIn Communication Architecture
LinkedIn Communication ArchitectureLinkedIn
 

Viewers also liked (11)

Content Strategy: The Key to Effective Web Content
Content Strategy: The Key to Effective Web ContentContent Strategy: The Key to Effective Web Content
Content Strategy: The Key to Effective Web Content
 
Creating Your Organization's Social Media Strategy Map
Creating Your Organization's Social Media Strategy MapCreating Your Organization's Social Media Strategy Map
Creating Your Organization's Social Media Strategy Map
 
The Truth About Messaging Hierarchy
The Truth About Messaging HierarchyThe Truth About Messaging Hierarchy
The Truth About Messaging Hierarchy
 
Introduction to ESB Architecture and Message Flow
Introduction to ESB Architecture and Message Flow Introduction to ESB Architecture and Message Flow
Introduction to ESB Architecture and Message Flow
 
Essential Nonprofit Communications Plan
Essential Nonprofit Communications PlanEssential Nonprofit Communications Plan
Essential Nonprofit Communications Plan
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systems
 
Strategic Communications Planning - A Free eBook
Strategic Communications Planning - A Free eBookStrategic Communications Planning - A Free eBook
Strategic Communications Planning - A Free eBook
 
Developing a Communications Strategy for Your Nonprofit
Developing a Communications Strategy for Your NonprofitDeveloping a Communications Strategy for Your Nonprofit
Developing a Communications Strategy for Your Nonprofit
 
LinkedIn Communication Architecture
LinkedIn Communication ArchitectureLinkedIn Communication Architecture
LinkedIn Communication Architecture
 
Map Your Message
Map Your MessageMap Your Message
Map Your Message
 
How to create a message map
How to create a message mapHow to create a message map
How to create a message map
 

Recently uploaded

The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 

Recently uploaded (20)

The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 

Use and understanding of message-map along with message

  • 1. Use and Understanding Of MESSAGE_MAP along with Message Handlers Presented By : Sheth Shraddha(50) Tamhane Vaidehi(54)
  • 2. Use of MESSAGE_MAP  Windows Operating Systems – A Message Driven System  Example : Mouse click, Printer signal  MESSAGE_MAP supports Message Driven Programming in MFC.  Class Member Functions are used.
  • 3. Role Of Class Member Functions  To execute commands  Messages are directed to class member functions by the use of macros in MFC.  Convenience
  • 4. Components Of MESSAGE_MAP  Declaration  Beginning  Termination
  • 5. Declaration  DECLARE_MESSAGE_MAP – Declared in the class which allows to respond to messages. – A class is eligible to execute a message map if it is derived from CCmdTarget or a class which is derived from CCmdTarget. – A class can have only one message map. – It should be the last member declared within a class. – If not then next member should be preceded by an access specifier.
  • 6. BEGINNING  BEGIN_MESSAGE_MAP – Parameters  Class name which implements the message map.  Base class – Succeeded by macros which represent messages.
  • 7. Termination  END_MESSAGE_MAP – Messages macros are succeeded by END_MESSAGE_MAP
  • 8. Message Handlers  To respond to a message one must add a message handler.  Members of CWnd class.  Can be overridden.
  • 9. Naming Pattern Of Message Handlers  Start with “On”.  Succeeded by message name.  Should be in camel case.  Ex: – Macro: WM_SIZE – Handler: OnSize()