Add message handler?

  • Thread starter Thread starter Vovin
  • Start date Start date
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.
 
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.
 
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
 
Back
Top