Reputation: 882
I just found out there is a limit for the number of controls that a mfc dialog can hold, I have near 653 controls, the dialog holds just 332 of them, I searched for a solution, some suggested property sheets and property pages, but I dont's want to distribute these 653 controls in some tabs! I want all of them in one tab, so, what else can I do except using tab control or property sheets? Is it possible at all?
This is the form
Upvotes: 0
Views: 1150
Reputation: 16779
It appears that some kind of grid control is what you are after. It is a single control in a form of a table that contains many cells. Both table and cells can be customized. Code Project has a whole section dedicated to grid controls. Here are first few from that section, free of charge:
http://www.codeproject.com/Articles/3176/The-ALXGrid-Control-Library
http://www.codeproject.com/Articles/8/MFC-Grid-control-2-27
http://www.codeproject.com/Articles/2879/Virtual-Grid-Control-1-04
Upvotes: 1
Reputation: 19996
653 controls? Seriously? No matter if the resource editor can handle it, such programming style is simply forbidden! Also, it's a waste of window handles. You should consider using a list/tree instead.
Create your controls programmatically! Inherit CWnd
and create your own control. Then add an array of your controls and dynamically create them in OnCreate
.
Upvotes: 1