How can I obtain the height of a menu? I mean with different font sizes menus could be larger and smaller so hard coding 15 or something is not a good solution.
How can I obtain the height of a menu? I mean with different font sizes menus could be larger and smaller so hard coding 15 or something is not a good solution.
You can try GetMenuInfo( ) which takes the first param as the handle to your menu and the second as a pointer to a MENUINFO struct. The cyMax member might be able to help you, not sure.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers