MDI applications and owner draw menu items

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.
 
D

Duke Sun

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.
 
D

Duke Sun

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.
 

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