Cannot set the height for owner draw menu

Hi,
I am developing a GUI application in which a customized menu bar is required. The menu bar is just like the one that we see at the top of Frame windows. A main menu with each item having a pop up sub menu.

The font and the back color required for each item in my app is different. So what i did was i derived a class from CMenu made each inserted item owner draw. I did my drawings in the overridden DrawItem function. I also override MeasureItem in my class and in it i set the required width and height.


Every thing is working fine,, But the problem is that my Main menu's height remains same. The height that i set in MeasureItem doesnt have any impact. But the width is correctly set.

This prblem exists only only for the main menu. The pop up menus doesnt have this problem. I am using the same derived class for creating the Main menu and popup menus. Please help me in finding a solution.
Topic archived. No new replies allowed.