Bob,
If I recall correctly, I delete the references to the sub menus right after
the AppendMenu function (which is superseeded by InsertMenuItem, by the
way).
The AppendMenu function copies the menu, and deletes it's own reference when
the root is deleted. But the original reference must be destroyed. It is
most practical to do this right after the append, so the reference does not
need to be buffered.
Coincidently, my toolkit also had troubles after compiling it to an
executable. I created some LVDChild windows, but this failed with
executeables, because then the LVDChild is an unregister class... Also,
there where some issues with a splashscreen that appears at start. Some
resources where not closed, and the dll could only be loa
ded once (e.g. LV
had to be closed completely to be able to reload the example). This is all
resolved now. So thank you for that!
And yes, I only send it to some interrested people. I don't post it here,
mostly because newsgroups are not to be used to post binairies. Also,
messages with attachments don't show up in outlook (at least with my
config...) so I can't see any reactions to my own post.
Regards,
Wiebe.
"INTP56"
wrote in message
news:506500000005000000C6DE0000-1042324653000@exchange.ni.com...
> Wiebe,
>
> I did see a reference to a PopUpMenu Toolkit you created last year,
> but it wasn't posted on the BB, it seemed you sent it directly to
> several parties.
>
> BTW, Do you destroy only the parent popupmenu, or all the submenus
> too?
>
> Bob