我已经找到了一个窗口的句柄:hwnd
现在需要把该窗口里所有的 Edit 控件的值显示出来,请问应该怎样做?
是用 EnumChildWindows 吗?具体代码应该怎样写?

解决方案 »

  1.   

    遍历Form.Controls集合就行了
    ==================
    是不是只适用于.net程序?
      

  2.   

    不好意思,问得不是太清楚
    那个 hwnd 是用C# 通过 API 函数 FindWindowEx 从其它进程中获得的
    现在我需要的是用 API 实现对跟 hwnd 对应的窗口进行遍历
      

  3.   

    public delegate bool EnumProc(int hWnd, int lParam); EnumChildWindows( hWnd, new EnumProc( EnumChild ), 0 );private bool EnumChild (int hWnd, int lParam) 
            { 
             //hWnd为子窗口的
    }
      

  4.   

    look this
    http://www.codeproject.com/csharp/SubclassingIECTXMenu.asp