title: Resizing main menu for high DPI/font size
body: <p>I have an issue with font height in standard main menu/popup menu when it contains images. Looks like this.</p>
  
  <p><img src="https://i.stack.imgur.com/wKsNz.png" alt="Large Font Issue"></p>
  
  <p>When there are no images, there are no problems as displayed above. Main menu uses <code>TImageList</code> with image width/height set to 16.</p>
  
  <p>So I want to preserve image size at 16x16 and center it, to get something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/SKKin.png" alt="Large Font Issue corrected"></p>
  
  <p>How can I read the font height of the main menu and adjust images in <code>TImageList</code> accordingly? One idea I have is to copy images from one <code>TImageList</code> to another with larger image width/height but I still need to determine proper size from the font size. How do I do that?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I solved this by examining <code>SystemParametersInfo</code> - <code>SPI_GETNONCLIENTMETRICS</code> value and using the <code>iMenuHeight</code> value for <code>TImageList</code> Width/Height. As images are deleted after changing Width/Height, I copied another to another <code>TImageList</code>. Works exactly as it should. Thank you everyone for your most helpful answers.</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>After examining the problem futher the solution which I marked as correct down there is giving better result so I switched to that one instead. Tested on Win7 and XP, appears to be working properly.</p>