Enclosed is the source code for an existing grid control. This controls allows a person to place many controls on it without using much memory. However, there is one bug with it. Enclosed is the source code for the control. It also uses a customized scroll control. Not sure if that problem is the control or the scroll one. Also, enclosed is the sample project to show the problem. Its called project2. The problem is when there is just little over one page, the scroll part is messed up. To see the problem happen, after running the project, click on create controls. It will create 19 rows of controls. That is correct. However, the scroll part is messed up. If you change it to 20 rows, its fine. It needs to be fixed in this case. There are also 2 enhancements needed. The first one is being able to when the program first loads up to set focus on another control. I set the tabindex of text2 to 0 (so that would be the first one to set focus). However, it looks like its setting focus on the control instead. That needs to be fixed. The other enhancement needed is an icon to use so when I use the control, its easy to tell from the picture which one is the grid. Let me know if you have any questions.
The compiled ocx and the source code for the ocxs for the enhancement and bug fix.
Windows XP Home Edition.