GetDialogBaseUnits is a crock
Here's a post at Old New Thing:
There are two functions that let you convert dialog units (DLUs)
to pixels. One is
GetDialogBaseUnits,
which returns the base
units directly (leaving you to do the math), and another is
MapDialogRect,
which takes a rectangle in DLUs and returns a rectangle in pixels.
...