Skip to main content
added 4 characters in body
Source Link
Andrew Truckle
  • 19.4k
  • 17
  • 93
  • 231

The first part is not an answer to the direct question but it should clarify why there is no need for it.

The menu is part of the global UI. Also the size of a menu items is part of the global settings.

If the user whatswants it, he can change the windows settings to get a larger menu.

I don't think it is a good way to change the standard behaviorbehaviour. A UI should be stable, persistent and consistent. All programs should have the same look and fealfeel. This includes the menu bar.

Now to your question.

You receive the WM_MEASUREITEMWM_MEASUREITEM message. ResondRespond to it and you can change the height for an onwerdraw menu.

See: http://www.codeguru.com/cpp/controls/menu/article.php/c3719/The-Easiest-Way-to-Code-the-Owner-Drawn-Menu.htm

The first part is not an answer to the direct question but it should clarify why there is no need for it.

The menu is part of the global UI. Also the size of a menu items is part of the global settings.

If the user whats it, he can change the windows settings to get a larger menu.

I don't think it is a good way to change the standard behavior. A UI should be stable, persistent and consistent. All programs should have the same look and feal. This includes the menu bar.

Now to your question.

You receive the WM_MEASUREITEM message. Resond to it and you can change the height for an onwerdraw menu.

See: http://www.codeguru.com/cpp/controls/menu/article.php/c3719/The-Easiest-Way-to-Code-the-Owner-Drawn-Menu.htm

The first part is not an answer to the direct question but it should clarify why there is no need for it.

The menu is part of the global UI. Also the size of a menu items is part of the global settings.

If the user wants it, he can change the windows settings to get a larger menu.

I don't think it is a good way to change the standard behaviour. A UI should be stable, persistent and consistent. All programs should have the same look and feel. This includes the menu bar.

Now to your question.

You receive the WM_MEASUREITEM message. Respond to it and you can change the height for an onwerdraw menu.

See: http://www.codeguru.com/cpp/controls/menu/article.php/c3719/The-Easiest-Way-to-Code-the-Owner-Drawn-Menu.htm

Source Link
xMRi
  • 15.5k
  • 3
  • 33
  • 64

The first part is not an answer to the direct question but it should clarify why there is no need for it.

The menu is part of the global UI. Also the size of a menu items is part of the global settings.

If the user whats it, he can change the windows settings to get a larger menu.

I don't think it is a good way to change the standard behavior. A UI should be stable, persistent and consistent. All programs should have the same look and feal. This includes the menu bar.

Now to your question.

You receive the WM_MEASUREITEM message. Resond to it and you can change the height for an onwerdraw menu.

See: http://www.codeguru.com/cpp/controls/menu/article.php/c3719/The-Easiest-Way-to-Code-the-Owner-Drawn-Menu.htm