1

In Explorer, when viewing items in details view, there's a little bit of left padding before the text in any given column. I was wondering if there's a way to obtain that padding value. I was checking out GetSystemMetrics, but I'm not sure if any of those options corresponds to the desired value. Thank you for any help.

  • 1
    Nope, it's private to the control and undocumented. Seems to be `6 * SM_CXEDGE` though. – Jonathan Potter Feb 09 '20 at 03:02
  • Thanks. Perhaps based on this thing that I don't understand, the default might be 3 * SM_CXEDGE: https://learn.microsoft.com/en-us/windows/win32/controls/hdm-getbitmapmargin?redirectedfrom=MSDN –  Feb 09 '20 at 05:50
  • Yes I think it's 3 * on each side (6 * total in padding per item). Play around with it until you get something that looks right, basically :) – Jonathan Potter Feb 09 '20 at 05:52
  • If you are interested, you can use the tool to measure, and you can find that the value is roughly the same as 3 * SM_CXEDGE. By the way, what is the purpose of doing this? – Strive Sun Feb 10 '20 at 07:26

0 Answers0