Thread: Height of a menu

  1. #1

    Height of a menu

    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.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    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

  3. #3
    Well it's a start, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM