MDI applications and owner draw menu items

  • Thread starter Thread starter Roger Norris
  • Start date Start date
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.
 
I can reproduce the issue on my side. I'm now performing research on it. I
will update you as soon as possible.

Best regards,

Duke Sun
Microsoft Online Partner Support
<MCSE/MCDBA/MCSD>

Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
This seems to be an issue of Winform. I have reported it to our product
team. Sorry for the inconvinience for you.

Best regards,

Duke Sun
Microsoft Online Partner Support
<MCSE/MCDBA/MCSD>

Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top