Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 Discussions

Is there a limit on the number of controls in a Dialog box for IVF9

sumitm
Beginner
850 Views
Hi,
I have a project where I am adding extra controls to an existing application. There seems to be space in the dialog box to accomodate that. However, I know in CVF there is a limit on the number of controls that can be added. Before I upgrade this application to IVF, wanted to know if it would have the ability to add the extra controls that I need. Is this a (IV/CV) Fortran limit or a MS Dev limit.
Thanks
0 Kudos
5 Replies
Steven_L_Intel1
Employee
850 Views
That's an MS limit on the number of child windows a window can have. Each control in a dialog box is one or more child windows.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
850 Views
My memory is vague, but I think that the limit in question existed only for Windows 9x and was 65535. Windows NT/2000/XP don't have that limit as far as I know.

Jugoslav
0 Kudos
bearoflittlebrain_ol
850 Views
FWIW, I have a Dialog box in CVF6.6B / Windows XP where I came up against a limitfor the number of controls at 256 - it was very difficult to find where that was documented. However, the limit was only when using the Wizard, and I added extra controls by editing the resource file using Notebook, ending up with about 300.
HTH
Alan
0 Kudos
sumitm
Beginner
850 Views
Thanks Alan & Jugsoslav,
Alan, Can you clarify a little as to what you mean by editing the resource file using Notebook (Notepad sp?). I go to the dialog box in Design mode and click on a control to add it.
Do you mean that I can go to the resource.h and resource.fd file and add the 257th control as say IDC_EDIT257 and it will show up on the dialog and then I can position it where I want.
Thanks in advance for your help on this.
Regards,
Sumit
0 Kudos
bearoflittlebrain_ol
850 Views
Sumit,
Sorry - of course it was Notepad. It is the .rc file that you need to edit initially with Notepad, and then add the new control ID number(s) to the .h & .fd files. I worked by copying the type of controlthat I wanted from another part of the .rc file, changing its ID and normally also changing its position so that it could be grabbed separately from its original. When the Control IDs are in place so that the dialog box appears with the new control, it can be moved, resized & edited normally.
HTH
Alan
0 Kudos
Reply