473,383 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to map a Windows message in VC 7.0 ?

Hi:

In VC 6.0, it is easy to map a handler to a Windows message, in which header
file, MESSAGE_MAP and default handler function are all taken care of by the
VC 6.0 IDE.

Just wonder if VC 7 (.NET) has the same ability?

Thanks for your info.

Polaris
Nov 17 '05 #1
3 1837
"Polaris" <et*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi:

In VC 6.0, it is easy to map a handler to a Windows message, in which header file, MESSAGE_MAP and default handler function are all taken care of by the VC 6.0 IDE.

Just wonder if VC 7 (.NET) has the same ability?


I think it was the same in 7, but in 7.1 it's on the class Properties pane:
there's icons for Overrides, Messages and Events among others.
--
Jeff Partch [VC++ MVP]
Nov 17 '05 #2
Thanks for your info. I just had a look at the Class View Pane, the only
items shown are base class info and the mapping functions I have manually
added. May be you are talking about the "Managed Code"? I'm working on
unmanaged C++/MFC using VC 7.1.

"Jeff Partch [MVP]" <je***@mvps.org> wrote in message
news:e5*************@TK2MSFTNGP10.phx.gbl...
"Polaris" <et*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi:

In VC 6.0, it is easy to map a handler to a Windows message, in which header
file, MESSAGE_MAP and default handler function are all taken care of by

the
VC 6.0 IDE.

Just wonder if VC 7 (.NET) has the same ability?


I think it was the same in 7, but in 7.1 it's on the class Properties

pane: there's icons for Overrides, Messages and Events among others.
--
Jeff Partch [VC++ MVP]

Nov 17 '05 #3
"Polaris" <et*******@hotmail.com> wrote in message
news:ul*************@TK2MSFTNGP12.phx.gbl...
Thanks for your info. I just had a look at the Class View Pane, the only
items shown are base class info and the mapping functions I have manually
added. May be you are talking about the "Managed Code"? I'm working on
unmanaged C++/MFC using VC 7.1.


Nope. Not talking about managed and not really talking about the class view
pane, but try this: in the class view pane, right-click on the class to
which you want to add a message handler, and select 'Properties' from the
resultant context menu. You should get a tool window with a combobox at the
top, a row of icons buttons (or toolbar) below it, and the gosh-awful
property grid below that. Hover the mouse over each of those icon buttons,
and one of them should display a tooltip that says 'Messages'. If you get
that far, click that button. The property grid should become a messages grid
from which you can select the message you want to handle on the left, and
thus its corresponding <Add> HandlerFunc entry from the combobox on the
right.
--
Jeff Partch [VC++ MVP]
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
7
by: Tyler Foreman | last post by:
Hello, I have a strange problem that occurs every so often in my application. It usually takes place when I hide one form and activate another. What happens is I get the following exception:...
9
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
1
by: harinathch | last post by:
Hi, Iam working with myapplication.exe.config file in my vb.net windows application.Its working fine in my development environment. When i test this application in some other machine using exe and...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.