怎么把combobox的下拉列表设为当前电脑所存在的字体 如果只是字體名稱, 可以 combobox1.Items:=screen.Fonts;如果以各自字體,顯示各自的字體名稱需另作處理 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function EnumFontsProc(var LogFont: TLogFont; var TextMetric: TTextMetric; FontType: Integer; Data: pointer): Integer;stdcall; begin TStrings(Data).Add(LogFont.lfFaceName); Result := 1; end;procedure TForm1.Button1Click(Sender: TObject); var DC: HDC; begin combobox1.Clear; DC := GetDC(0); EnumFonts(DC, nil, @EnumFontsProc,pointer(combobox1.items)); ReleaseDC(0, DC); end;end. 问一个关于DevExpress皮肤的问题 关于数据输入奇怪的问题,请高手帮一帮 keybd_event小问题! 刚接触Rave , 请教几个问题 关于Table.Filter的问题?急 关于打印的问题,改变默认打印机 CSDN怎么这么慢!!! 如何让用户在DB_Grid控件中修改数据时只能是PickList属性中指定的值? 遇到难题!高手请进。 能帮我一下吗 过节了,技术大放送9:用程序将大文件分割成1.44MB的大小。 菜鸟提问,有分,怎样在表格中加入图标,急等
FontType: Integer; Data: pointer): Integer;stdcall;
begin
TStrings(Data).Add(LogFont.lfFaceName);
Result := 1;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
DC: HDC;
begin
combobox1.Clear;
DC := GetDC(0);
EnumFonts(DC, nil, @EnumFontsProc,pointer(combobox1.items));
ReleaseDC(0, DC);
end;
end.