HDC hdc, // handle of device context
DWORD dwTable, // metric table to query
DWORD dwOffset, // offset into table being queried
LPVOID lpvBuffer, // address of buffer for returned data
DWORD cbData // length of data to query
);
判断系统是否大字体
function GetLargeFonts: boolean;
var
fontsize : integer;
hdc : Thandle;
begin
result := false;
hdc := GetDc(hwnd_desktop);
fontsize := GetDeviceCaps(hdc,logpixelsx);
ReleaseDc(hwnd_desktop,hdc);
if fontsize = 96 then result := false
else if fontsize = 120 then result := true;
end;