R
Roger Norris
I've run into a problem with MDI apps and owner-drawn menu
items. After creating two MDI child windows and then
closing them, all of the menus disappeared! Upon further
investigation, it appears that the custom menu drawing
functions aren't even getting called any more - so it's not
a problem with the drawing code.
This only happens when the MDI child window(s) has its own
menu items to merge with the application's. It doesn't
matter whether the child window's menu items are
owner-drawn or not.
Does anyone know of a workaround/solution to this problem?
We are drawing the menus by setting menuItem.OwnerDraw =
true and then handling both the DrawItem and MeasureItem
events.
items. After creating two MDI child windows and then
closing them, all of the menus disappeared! Upon further
investigation, it appears that the custom menu drawing
functions aren't even getting called any more - so it's not
a problem with the drawing code.
This only happens when the MDI child window(s) has its own
menu items to merge with the application's. It doesn't
matter whether the child window's menu items are
owner-drawn or not.
Does anyone know of a workaround/solution to this problem?
We are drawing the menus by setting menuItem.OwnerDraw =
true and then handling both the DrawItem and MeasureItem
events.