要先求出pixel和millimeter的比例.
::GetDeviceCaps(::GetDC(NULL), HORZSIZE)
Width, in millimeters, of the physical screen.
::GetDeviceCaps(::GetDC(NULL), LOGPIXELSX)
Number of pixels per logical inch along the screen width
这是pixel/inch, 你还需要一个inch到millimeter的比例, 这是固定值.
好象是const int MILLIMETER_PER_INCH = 25.3807;(毫米长度单位,等于0.0394英寸)