Where is the best place in the ExtenderProvider to Extende/override/set events?
Printable View
Where is the best place in the ExtenderProvider to Extende/override/set events?
To be more clear. I have a MenuItem Extender it adds Icon and enhanced style support to MenuItems. I am having problem getting the top level MenuItems to be extended. I attach the extender provided Draw when the Icon is set but of course the Top level items don't have Icons. So far I haven't found a way to set the OwnerDraw and DrawItem for these top level items....
CanExtend does not apear to fire at runtime....
I have an idea but I don't much like it. I could extend the Main menu adding a DrawStyle property but I woul then have to loop through all the MenuItems setting the OwnerDraw and DrawItem for each.
I think I may have to do this anyway...... I just don't like it.