Height of a menu

This is a discussion on Height of a menu within the Windows Programming forums, part of the Platform Specific Boards category; How can I obtain the height of a menu? I mean with different font sizes menus could be larger and ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    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
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    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, 02: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, 04: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, 10:45 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21