Carl Daniel [VC++ MVP] wrote:
rsjonny wrote:
>I'm writing C++ code with visual studio 2005, I find when my source
edit view get focused, the property of this class is missing, so if I
want to add a virtual function or a window's message handler function,
I must click in class view.
I want to know that's why, I installed visual.Assist, I don't know if
this has problem?
can somebody give me an answer.
Why - it just doesn't work that way. Consider this: you can put as many
class definitions in a source file as you wish. Which one would you like
the properties window to reflect when (not if) there's more than one?
I don't know what VA would or would not do to help you.
Carl:
Yet I think this is a great weakness of the IDE -- that it is not
possible to easily get to the class properties from the code window.
Actually, you can do it, but it's klutzy. If you switch the left-hand
dropdown in the toolbar from CMyClass to <global scopeand back again,
you will get the class properties.
The following would be a better way, IMHO. Currently, if you have code
void CMyClass::MyMethod()
{
}
if you click *anywhere* in this area, you get the properties of
CMyClass::MyMethod, which is pretty useless information, IMHO.
I suggest that if you click on CMyClass to the left of the scope
operator (::), then you should get the class properties. This would work
even if there were implementations of multiple classes in the file.
See
<https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=297798>
--
David Wilkinson
Visual C++ MVP