Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
INT_PTR RegisterFont(WPARAM wParam, LPARAM lParam)
{
	FontIDW temp;
	if (!ConvertFontID((FontID*)wParam, &temp)) return -1;
	return sttRegisterFontWorker(&temp, (int)lParam);
}
Exemplo n.º 4
0
int RegisterFont(WPARAM wParam, LPARAM lParam) {
	FontID *font_id = (FontID *)wParam;
	FontIDW font_id_w;
	ConvertFontID(font_id, &font_id_w);
	return RegisterFontW((WPARAM)&font_id_w, 0);
}