dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: What makes the Event Handler Wizard greyed out?

  1. #1
    Join Date
    Dec 2005
    Posts
    180

    What makes the Event Handler Wizard greyed out?

    What makes the Event Handler Wizard greyed out?

    When I am in the resource editor and I right click on a menu item to add an event handler, the wizard comes up but the options to add are disabled and the Add and Edit button is grayed out.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,978

    Re: What makes the Event Handler Wizard greyed out?

    What project type is this? MFC, Win32, etc.?

  3. #3
    Join Date
    Dec 2005
    Posts
    180

    Re: What makes the Event Handler Wizard greyed out?

    Quote Originally Posted by Arjay
    What project type is this? MFC, Win32, etc.?
    It is MFC using Visual Studio 2005.

    Something else I noticed. IN the class view, if I click to see the properties of a class, the properties also does not come up.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,978

    Re: What makes the Event Handler Wizard greyed out?

    MFC was around before the idea of 'events' (at least with respect to connecting up UI objects).

    In MFC, you'll use messages and overrides. See the attached properties.png in this post for more info.

  5. #5
    Join Date
    Dec 2005
    Posts
    180

    Re: What makes the Event Handler Wizard greyed out?

    But what if it is blank?

    For some reason I am unable to see the properties of a class when I click on a class in the class view and select to view the properties. I see the Events, the Properties, and the Overrides are empty. Does anyone know how to reset this?

    I remember in the earlier versions of the IDE, you would delete the .clw file and that would clear everything and you would reload all the cpp code and it would make a new one. Is there some such file in the 2005 version that will do the same sort of thing?

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    12,978

    Re: What makes the Event Handler Wizard greyed out?

    Do this from the resource editor view. Select the dialog (or control within the dialog), right click and choose properties and then go from there.

  7. #7
    Join Date
    Apr 1999
    Posts
    3,585

    Re: What makes the Event Handler Wizard greyed out?

    I remember in the earlier versions of the IDE, you would delete the .clw file and that would clear everything and you would reload all the cpp code and it would make a new one. Is there some such file in the 2005 version that will do the same sort of thing?
    Try deleting the .ncb file . This seems to clean up things after a project gets corrupted.
    Gort...Klaatu, Barada Nikto!

  8. #8
    Join Date
    Dec 2005
    Posts
    180

    Re: What makes the Event Handler Wizard greyed out?

    I figured it out.
    It had to do with a comment that said something like:
    // Call-Back Messages

    I had it on the wrong line, when I moved it, it was fixed.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)