窗口回调函数?
同上。各位大哥。窗口回调是什么意思 啊 。。小弟基础差。望各位给小弟一点启发~!谢谢啦O(∩_∩)O哈哈~
function EnumChildWindowsPro(Handle:THandle):boolean;stdcall;
var
TheClassName:array[0..MAX_PATH] of char;
ConText:array[0..MAX_PATH] of char
strClassName,strControlName:String;
begin
Result:=True;
GetClassName(Handle,TheClassName,MAX_PATH);
GetWindowText(Handle,ConText,MAX_PATH);
strClassName:=String(TheClassName);
strControlName:=String(ConText);
end;
procedure FindControl(Parent:HWND;ClassName);
begin
EnumChildWindows(Parent,@EnumChildWindowsPro,0);
end;
[ 本帖最后由 lcb139 于 2009-8-28 21:54 编辑 ]