CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2002
    Posts
    4

    add event handler

    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?

  2. #2
    Join Date
    Mar 2002
    Location
    Sweden
    Posts
    136
    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

  3. #3
    Join Date
    Aug 2002
    Posts
    4

    There is no such buttons :(

    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 ?

  4. #4
    Join Date
    Mar 2002
    Location
    Sweden
    Posts
    136
    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??

  5. #5
    Join Date
    Aug 2002
    Posts
    4
    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"???
    Last edited by ASW; December 18th, 2002 at 02:13 PM.

  6. #6
    Join Date
    Mar 2002
    Location
    Sweden
    Posts
    136
    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

  7. #7
    Join Date
    Dec 2002
    Location
    Huntsville, AL
    Posts
    54
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured