Re: Array of custom controls

"Bill" <billa-l3pLR9/iSOgztatW0fm/[email protected]> Sun, 05 Jun 2011 17:42:51 -0000
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Got it working with dynamically allocated controls.  And, yes, I am de-allocating them.  ;)

Thanks everybody.
Bill

--- In [email protected], Philipp Kursawe <phil.kursawe@...> wrote:
>
> On Thu, Jun 2, 2011 at 3:59 AM, Michael Stephenson
> <domehead100@...> 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/