支持
看看TScreen.Fonts时怎样取得
看看TScreen.Fonts时怎样取得
解决方案 »
- 如何连接网站上的数据库,我想让客户启动软件时候首先到我的网站上认证一下,是否是我的正式客户。
- 高手请进!ole与word高难问题,在线等,分数不够再加,解决即给分!!!
- 文件为何打不开,而用Opendialog打开的文件却可以.
- Excel如何追加记录~问题解决马上给分~!
- 谁做过IC卡管理系统
- sql语句求救?server sql97....
- 大家帮忙阿 ,谢谢!
- 这样实现单个文件监视!如改变大小,重命名等
- 请问错误external exception c0000029 怎样改啊?
- 怎样实现opendialog的combobox功能?
- 在delphi中用select语句进行模糊查询如何写
- 请问DELPHI中有没有延时函数?
{回调函数}
function EnumerateWindows(hWnd: HWND; lParam: LPARAM): BOOL; stdcall;var
Form1: TForm1;implementationprocedure TForm1.Button1Click(Sender: TObject);
begin
ListBox1.Items.Clear;
EnumWindows(@EnumerateWindows,0);
end;function EnumerateWindows(hWnd: HWND; lParam: LPARAM): BOOL;
var
TheText: Array[0..255] of char;
begin
if (GetWindowText(hWnd, TheText, 255)=0) then
Form1.ListBox1.Items.Add(Format('%d = {这个窗体没有标题}',[hWnd]))
else
Form1.ListBox1.Items.Add(Format('%d = %s',[hWnd,TheText]));
Result:=TRUE;
end;我想看了上面的例子,EnumFontFamilies的用法你应该会用了。