Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. control event list empty in VS2008 - no messages listed

control event list empty in VS2008 - no messages listed

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    permutations
    wrote on last edited by
    #1

    I'm trying to write an MFC dialog app in VS2008. I put some controls on the dialog and then went to add some event handlers, and found what appears to be a bug in VS2008, unless there is some simple solution that I'm missing. There are no messages associated with any controls. If I click on a control and then click on the Control Events icon (the lightning bolt), nothing is listed for any control. Because there are no messages listed, I can't add an event handler. (Well, I could do it all manually, but it's easier to use the code generator.) I've spent the last two hours trying to figure out what's wrong. I see other complaints about the same problem, but no solutions (at least none that work for me). I'm running VS2008 on a 64-bit Windows 7 system with IE8 installed. Does anyone know what's wrong or how to fix it? Thanks.

    D 1 Reply Last reply
    0
    • P permutations

      I'm trying to write an MFC dialog app in VS2008. I put some controls on the dialog and then went to add some event handlers, and found what appears to be a bug in VS2008, unless there is some simple solution that I'm missing. There are no messages associated with any controls. If I click on a control and then click on the Control Events icon (the lightning bolt), nothing is listed for any control. Because there are no messages listed, I can't add an event handler. (Well, I could do it all manually, but it's easier to use the code generator.) I've spent the last two hours trying to figure out what's wrong. I see other complaints about the same problem, but no solutions (at least none that work for me). I'm running VS2008 on a 64-bit Windows 7 system with IE8 installed. Does anyone know what's wrong or how to fix it? Thanks.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      permutations wrote:

      There are no messages associated with any controls. If I click on a control and then click on the Control Events icon (the lightning bolt), nothing is listed for any control.

      For a message handler, in the Properties window toolbar, click the Messages button and then select the message for which you want to add a handler. From the drop-down list box, select AddMessageHandler to add the message handler selected. For an event handler, in the Properties window toolbar, click the Events button. Click the plus sign (+) to expand the object for which you want to add an event handler. Select the desired event, and then from the drop-down list box, select Add event.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      P 1 Reply Last reply
      0
      • D David Crow

        permutations wrote:

        There are no messages associated with any controls. If I click on a control and then click on the Control Events icon (the lightning bolt), nothing is listed for any control.

        For a message handler, in the Properties window toolbar, click the Messages button and then select the message for which you want to add a handler. From the drop-down list box, select AddMessageHandler to add the message handler selected. For an event handler, in the Properties window toolbar, click the Events button. Click the plus sign (+) to expand the object for which you want to add an event handler. Select the desired event, and then from the drop-down list box, select Add event.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        P Offline
        P Offline
        permutations
        wrote on last edited by
        #3

        There is NOTHING there for any control. The list is empty. Here is a screenshot: http://permutations.com/missing_events.jpg[^] Also, IntelliSense is not working - I don't get the list of member variables and functions when typing code. I have seen other reports of this - including a bug report on microsoft.com - but no one has a solution that works. http://connect.microsoft.com/VisualStudio/feedback/details/98810/add-event-handler-wizard-lacking-class-list-and-message-type-or-gives-read-only-error[^] http://social.msdn.microsoft.com/Forums/en-US/vstsstart/thread/cba16db5-5826-4384-ba1f-044b60195bf7[^] http://stackoverflow.com/questions/951525/visual-studio-2008-mfc-event-wizard-broken[^]

        P Y 2 Replies Last reply
        0
        • P permutations

          There is NOTHING there for any control. The list is empty. Here is a screenshot: http://permutations.com/missing_events.jpg[^] Also, IntelliSense is not working - I don't get the list of member variables and functions when typing code. I have seen other reports of this - including a bug report on microsoft.com - but no one has a solution that works. http://connect.microsoft.com/VisualStudio/feedback/details/98810/add-event-handler-wizard-lacking-class-list-and-message-type-or-gives-read-only-error[^] http://social.msdn.microsoft.com/Forums/en-US/vstsstart/thread/cba16db5-5826-4384-ba1f-044b60195bf7[^] http://stackoverflow.com/questions/951525/visual-studio-2008-mfc-event-wizard-broken[^]

          P Offline
          P Offline
          permutations
          wrote on last edited by
          #4

          I FOUND IT!!!! Close the solution and delete the NCB file, and all is well. I found it by searching for "Intellisense not working" rather than "Events missing": http://weblogs.asp.net/erwingriekspoor/archive/2008/10/23/intellisense-not-working-in-visual-studio-2008.aspx[^] Phew! This was a giant pain.

          1 Reply Last reply
          0
          • P permutations

            There is NOTHING there for any control. The list is empty. Here is a screenshot: http://permutations.com/missing_events.jpg[^] Also, IntelliSense is not working - I don't get the list of member variables and functions when typing code. I have seen other reports of this - including a bug report on microsoft.com - but no one has a solution that works. http://connect.microsoft.com/VisualStudio/feedback/details/98810/add-event-handler-wizard-lacking-class-list-and-message-type-or-gives-read-only-error[^] http://social.msdn.microsoft.com/Forums/en-US/vstsstart/thread/cba16db5-5826-4384-ba1f-044b60195bf7[^] http://stackoverflow.com/questions/951525/visual-studio-2008-mfc-event-wizard-broken[^]

            Y Offline
            Y Offline
            yooyo
            wrote on last edited by
            #5

            Same problem here.. Im writting WTL aplication and suddenly for one of my view events list in properties window is gone. By pure luck, I have found solution. In my code view class was inherited from multiple base classes. I have commented one of the classes and event list was empty:

            class CXXXView :
            public CDialogImpl<CXXXView>,
            public CDialogResize<CXXXView>,
            public CWinDataExchange<CXXXView>,
            COffscreenDraw<CXXXView>,
            //public CCtlColored<CXXXView>,
            CDropFilesHandler,
            ITimeLineListener

            I just removed commented line, save h file and events is back. Make sure you have

            enum { IDD = IDD_XXX_FORM };

            in your h file.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups