标签:style blog color os io for ar cti
function EnumWindowsProc(hwnd: HWND; lparam: LPARAM): Boolean; stdcall; var buf: array[Byte] of Char; begin Result:= True; GetWindowText(hwnd, buf, SizeOf(buf)); Form1.Memo1.Lines.Add(buf); Form1.Memo1.Lines.Add(IntToStr(hwnd)); end; procedure TForm1.Button1Click(Sender: TObject); begin EnumWindows(@enumwindowsproc,0); EnumChildWindows(HWND,@enumwindowsproc,0); //遍历子窗口多了一个参数.父窗口 end;
标签:style blog color os io for ar cti
原文地址:http://www.cnblogs.com/didiwei/p/3922882.html