Add message handler?

V

Vovin

Hi,

I've just migrated from Visual C++ 6.0 to Visual C++ .Net and I can't
seem to add message handlers to my application (for my mouse events).

There is no longer a class wizard and the instructions in help and MSDN
seem to be wrong. They are:

"To define or remove a message handler using the Properties window

In Class View, click the class.
In the Properties window, click the Messages button.
Note The Messages button is available when you select either the
class name in Class View or when you click within the source window."

My trouble is that there is no Messages button. I can't find it
anywhere. Can anyone tell me how to add message handlers to my
application? It's really really really doing my head in. Thanks.
 
P

Peter van der Goes

Vovin said:
Hi,

I've just migrated from Visual C++ 6.0 to Visual C++ .Net and I can't
seem to add message handlers to my application (for my mouse events).

There is no longer a class wizard and the instructions in help and MSDN
seem to be wrong. They are:

"To define or remove a message handler using the Properties window

In Class View, click the class.
In the Properties window, click the Messages button.
Note The Messages button is available when you select either the
class name in Class View or when you click within the source window."

My trouble is that there is no Messages button. I can't find it
anywhere. Can anyone tell me how to add message handlers to my
application? It's really really really doing my head in. Thanks.
You'll find the Messages Button in the Properties Window toolbar just to the
right of the events button (yellow lighting bolt).
Hope this helps.
 
T

Tamas Demjen

Vovin said:
There is no longer a class wizard

You don't need a wizard. It's as simple as double clicking on an event.
In Class View, click the class.
In the Properties window, click the Messages button.

It's not the Class View but the Properties tab. And it's not called
Messages but Events. And you don't click on the class but on the form
designer.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top