Re: Re: Array of custom controls
Philipp Kursawe <[email protected]> Sun, 5 Jun 2011 17:17:02 +0200
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 2, 2011 at 3:59 AM, Michael Stephenson <[email protected]> wrote: > I should point out that if you are able to construct the static controls in place, you should never change the size of the array after an initial SetCount; otherwise the array may reallocate/move it’s data buffer, causing the same problem as you already have. > > > > It’s probably cleaner to just allocate them with new and put pointers into the array (that’s what I’ve always done). But don't forget, that you would have to cleanup the array yourself upon destruction ;) ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/