Can't make any more buttons in VC++ / MFC (visual stuadio 2005).
-
I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?
-
I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?
-
The resource editor does have a limit and you hit it. To add more controls you can always add them dynamically at run time using the Create functions.
Ok.. thanks.. to bad I can't just up the limit... Oh well.. I think I'll just go through all my static text objects and code them in.. That should free up bunches... Thanks for the info...
-
I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?
Can you explain why you use of 400 objects,please?:)
WhiteSky
-
I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?
IIRC a dialog resource has a limit of 255 controls. If you need more, you can create them in your
WM_INITDIALOG
handler.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ