Click to See Complete Forum and Search --> : add event handler


ASW
December 17th, 2002, 11:44 AM
In VC6.0 I could to add event handler for dialog class using Class Wizard. Now in VC .NET I must to use "Properties" for my Class (I've read it in Help). But there is no neither "Events" button in the Properties window nor "Overrides" button.
What I must to do for these buttons appearance???
Or is there any other way to add event handler to my project?

Jesper A
December 17th, 2002, 02:32 PM
Simple rightclick in your desired class in classview
select properties fourth icon from the left is events
and then messages and last overrides.
It depends on if you have a class that got any at all.
Regards

ASW
December 18th, 2002, 02:13 AM
I unerstand, that these buttons must be there (in Properties window). But in my case there is only 3 buttons: "Sort Alphabeticaly", "Sort by Category", and disabled "Properties pages".
Before this I choose my CDialog based class from Class View!
It is common MFC project/solution generated by wizard.
So what can you suggest now ?

Jesper A
December 18th, 2002, 02:48 AM
Nearly nothing...Havenīt happend to me. If you open
upp the resourse editor and rightclick a button or
similar can you choose addEvent there.If you open
class after class any difference then??

ASW
December 18th, 2002, 01:10 PM
What do you mean "class after class" ?
When I rightclick on Dialog resource in Recource View I can add only function or variable :(
For any control item (button for example) I can add event without any problems!
I'd checked all my classes. I can't add event to anyone!
May be it is a VC bug ? Or my version of VC.net is "damaged"???

Jesper A
December 18th, 2002, 01:50 PM
Sorry for bad English.I meant that you should check
every class to check if there was any differences.
Suggestions
Start up a new project. (Donīt know if you have ported
a VC6 project). And see if that makes any sense.
Reinstall if nothing else helps.There is a .clw file
I suspect that it's something dealing with classview.
Copy that to another map and recompile.
Well out of suggestions. When you find out what
went wrong post it.
Good luck
Regards

hinksj
December 23rd, 2002, 09:15 AM
Similar Question ...

I was fine in VC6 ... I keeping looking for ways to do the same in NET.

Dialog base Class. In Class Properties, I can work with standard WM_?? messages or the OverRideables.

I want to be notified of MY OWN message (WM_USER+1) ...

Today I have to manually add it to the Class and MessagePump

How do you do it in NET?