Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working Visual C++ 6.0. I have not migrated to Visual Studio 2005 or 2012 due to migration problems, which I was not able to overcome. I am working on Engineering Design Software which has 59 classes and has 186 controls in one FormView. This Form accepts about 40 data input items in the edit box type of controls. When the user clicks the "Calculate" button, the software does the calculations and displays the calculated output in the ReadOnly edit boxes on the same FormView.

There is an option on the menu to show this input and output values in the Document View. When this is used the data is shown in the document format. When the user reverts to the Form View, some (about six) controls are missing in the Form View. Nowhere GetDlgItem(Control_Name)->ShowWindow(SW_HIDE) command is used. This also happens when the file is closed and reopened. The same controls are missing.

When Document View is asked for, the Document Class stores the data in three arrays, each of size with 155 elements, using OnDraw() command of the Document Class.

Please help me with my problem.

Earlier I had problem when the number of controls in the Form View exceeded 256. This appeared to be the limitation of VC++ 6.0 version. This was overcome by reducing the number of elements.

Dilip Chawathe
Posted
Comments
Richard MacCutchan 28-Jan-14 8:26am    
Sorry, but no one can guess what your code is doing or why it is not showing some parts. You need to use your debugger to narrow it down, and then show the code and explain where it is failing.
CPallini 28-Jan-14 9:07am    
Did you consider using just one listview, instead of a plethora of text boxes?
Sergey Alexandrovich Kryukov 28-Jan-14 11:02am    
Good idea. There are too many cases when people crowd forms with buttons and text boxes, just because this is all they knew before...
—SA
Sergey Alexandrovich Kryukov 28-Jan-14 11:03am    
Missing controls from view is the usual problem stemmed from sloppy use of the designer, which is also far from being perfect.
Do things accurately and methodically, step at a time, that's all.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900