#define HORZSIZE 4 && Horizontal size in millimeters #define VERTSIZE 6 && Vertical size in millimeters #define HORZRES 8 && Horizontal width in pixels #define VERTRES 10 && Vertical height in pixels DECLARE INTEGER ReleaseDC IN Win32Api; INTEGER nwnd, INTEGER hdc DECLARE INTEGER GetDC IN Win32API; INTEGER hWnd DECLARE INTEGER GetDeviceCaps IN Win32API; INTEGER hdc, INTEGER nIndex * Get a device context lnhDC = GetDC(0) * Get the horizontal size in millimeters lnhorzsize = GetDeviceCaps(lnhDC, HORZSIZE) * Get the horizontal width in pixels lnhorzres = GetDeviceCaps(lnhDC, HORZRES) * Horizontal pixels per millimeter lnhpixels = lnhorzres / lnhorzsize * Get the vertical size in millimeters lnvertsize = GetDeviceCaps(lnhDC, VERTSIZE) * Get the vertical width in pixels lnvertres = GetDeviceCaps(lnhDC, VERTRES) * Vertical pixels per millimeter lnvpixels = lnvertres / lnvertsize * Release the device context = ReleaseDC(0, lnhDC)hth,