Re-parenting an application's main form works, but menus don't function.

T

timnels

I've got an application whose main form I rehost (via SetParent) in a
parent application's main form (on a panel). This works fine and all
the controls work except the menustrip/toolstrip menus don't show their
dropdown lists when they are clicked.

Does anyone know why this is happening?
Thanks.
 
D

DeveloperX

I think you have to call SetParent on the menu as well, and probably
any other control that uses (from memory) CreateWindow[Ex]
 
T

timnels

I think you are on the right track, I can enumerate the child windows
in the re-parented app, but I don't know which windows to re-parent ...
bad things seem to happen when I do a SetParent on anything other than
the form itself (the controls never show).


I think you have to call SetParent on the menu as well, and probably
any other control that uses (from memory) CreateWindow[Ex]

I've got an application whose main form I rehost (via SetParent) in a
parent application's main form (on a panel). This works fine and all
the controls work except the menustrip/toolstrip menus don't show their
dropdown lists when they are clicked.
Does anyone know why this is happening?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top