Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Question

Status
Not open for further replies.

MinnisotaFreezing

Programmer
Jun 21, 2001
120
KR
Hey,

I have a MFC project based on CFormView that is basic data manipulation. It has many derived classes, and many derived Dialog Boxes. I am adding additional functionality, and would like some opinions.

The new function will follow from a button. That is, the user will press "Checkbook" and a new screen will open up. Then the user presses "Add Item" fills in some info, more data is grabbed based on the users choices, and a new line item is added, up to a max of 10 lines. In the past, I would have 10 rows of edit boxes, and the data would populate the edit boxes. This is cumbersome when each line item has 6 data fields. That is 60 edit boxes. What a bore. I could print each line item to one big edit box. The problem is, the user needs to be able to select a line item and edit the information. And the info needs to be parsed and saved to disk.

I don't have a lot of experience with user I/O outside of dialog boxes. I think I could create a window based on ScrollView, write to the window itself, and then load the info based on where on the screen the user double clicks. But, I would need buttons as well. However, I have a feeling there is an easier way to do what I want, I just don't know it. I suppose what I am looking for is like Outlook Express InBox. You double click an email, and it opens up that data set. Outlook does not have buttons, however.

Anyone have any advice for me? Is this to general of a question for this board? Did I explain my problem fully?

I appriciate any help

CJB
 
I think you need something like the Listview control, which OE also uses. MFC provides the CListView class to make things simple(r). :) Hope that this helped! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top