OK. So I have this idea.
Since I can't get the UIElement during the createInstance method  - I can't add the XMenuBar to the sChildWindow struct during it's initialization.
I can get the UIElement during the component_attached event happening on the frame and then
iterate through the m_xChildren list looking for a match on FrameActionEvent.Frame == childIterator.m_cFrame. Then I could set the retrieved menubar on the found child and deregister the listener.

Is that OK ?

Reply via email to