473,473 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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.
Jan 11 '08 #1
3 1179
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.

-cd
Jan 11 '08 #2
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
Jan 11 '08 #3
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.
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.

--
David Wilkinson
Visual C++ MVP
Jan 11 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kent Eilers | last post by:
I want to follow naming conventions for my controls - i usually prefix combo boxes with "cbo". When a form is in datasheet view however i do not want the user to see the 'cbo' prefix in front of...
2
by: Bill Holmes | last post by:
I have an A2003 front end (mdb) using ado to link the form/subforms to SQL server 2k tables and views. In SQL server, there is a view between 2 tables with a 1-1 relationship. I can edit records...
2
by: Colin Robinson | last post by:
Help please I have an example class called Person with 2 public properties Firstname and Lastname, I cant create a textbox on an asp.net form bound to the Person.Firstname property Can...
2
by: Martin | last post by:
Hi, I want to create a number of ascx controls with edit and view modes. Previously I have put two panels in the ascx - one for view (with label subcontrols), and one for edit (with text box...
10
by: Angel | last post by:
I want to concat a space in an HTML Control's innerText property. here is a sample code Dim celCreate As New HtmlControls.HtmlTableCell() celCreate.innerText = " TEST" When the page is...
5
by: Praveen R | last post by:
Hi ! I am using a List view control to populate data onto. On the click event of the list view control, i need to find out whether the area clicked has any information of has no information. I...
0
by: clickon | last post by:
I want to use an INSERT Query as the value for the UpdateCommand property of an SQL datasource, anyone know if this will actually work ? The reason i want to do it is bacause i am taking values...
0
by: Chicagoboy27 | last post by:
I am wondering how to set an object datsource or any data source for a dropdown list that is a details view. Here is a brief set up. I have a details view that lists a bunch of information. when a...
0
by: colin | last post by:
Hi, I have my property editor working for my custom classes and struct using typeconverters and generting propertydescriptors for the custom fields and data fields etc, ... when I edit an...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.