I am having a problem using Class View and the Properties window to add new message handlers in a C++ project.
For example, I want to add a handler for WM_MDIACTIVATE to the CMainFrame class. The .cpp and .h files are both checked out as I have been working on them.
Firstly, on occasion, after clicking on the class name in the top part of the Class View window, there is a lot of activity refreshing the bottom part of that window with the status bar prompt continually changing between "Ready" and "Updating source control". This can take a few minutes but, once completed, it doesn't seem to happen again.
Secondly, with the relevant class selected in the top part of Class View I now go the Properties window, find the message I want to add a handler for (for example WM_MDIACTIVATE) and select the option from the drop-down "<Add> OnMDIActivate". VS2005 then displays the message "Add/Remove operation is impossible, because the code element 'CMainFrame' is read only".
That is patently impossible as I have manually checked out the .cpp and .h files previously. In Class View, in the Solution and on the tabs on the IDE window everything is shown as being checked out. I can even close the solution then reopen it and the same problem occurs.
If only the .cpp is currently checked out I will be requested to checkout the .h file. However the problem still remains.
I have tried resetting the local cache in case that had anything to do with it but no luck.
Hope you can help as it is irritating (and probably error prone) to have to add handlers manually.
Regards,
Brett
Vault 3.5.2.5087 and VS2005 Class View
Moderator: SourceGear