why property view become blank when .h or .cpp edit view get focused?

  • Thread starter Thread starter rsjonny
  • Start date Start date
R

rsjonny

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.
 
rsjonny said:
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.

-cd
 
Carl said:
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 scope> and 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>
 
rsjonny said:
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.

rsjonny:

If you are in the .h file, you can click inside the class definition to
get the class properties.

For the .cpp file, see my reply to Carl.
 
Back
Top