INT_PTR GetFont(WPARAM wParam, LPARAM lParam) { FontIDW temp; if (!ConvertFontID((FontID*)wParam, &temp)) return -1; LOGFONT lftemp; int ret = sttGetFontWorker(&temp, &lftemp); ConvertLOGFONT(&lftemp, (LOGFONTA*)lParam); return ret; }
int GetFont(WPARAM wParam, LPARAM lParam) { FontID *font_id = (FontID *)wParam; LOGFONTA *lf = (LOGFONTA *)lParam; FontIDW font_id_w; LOGFONTW lfw; ConvertFontID(font_id, &font_id_w); int ret = GetFontW((WPARAM)&font_id_w, (LPARAM)&lfw); ConvertLOGFONT(&lfw, lf); return ret; }