control event list empty in VS2008 - no messages listed
-
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.
-
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.
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
-
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
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[^]
-
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[^]
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.
-
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[^]
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,
ITimeLineListenerI just removed commented line, save h file and events is back. Make sure you have
enum { IDD = IDD_XXX_FORM };
in your h file.