Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
を使用してウィンドウ内のすべてのコントロールを列挙しようとしていますuser32.dllが、何をする必要があるか正確にはわかりません。
user32.dll
と を使用EnumWindowsしEnumChildWindowsていますが、ウィンドウ内のすべてのコントロールを取得するわけではありません。
EnumWindows
EnumChildWindows
Delphi アプリケーションでいくつかのラベルのテキストを取得したいと考えています。
Spy++ を使用してみましたが、一覧にも表示されません。
IList<IntPtr> childern = new List<IntPtr>(); WNDENUMPROC enumChildProc = delegate(IntPtr hwnd, IntPtr param) { childern.Add(hwnd); return true; }; EnumChildWindows(Hwnd, enumChildProc, IntPtr.Zero); return childern;
これHwndは親ウィンドウ ハンドルです
Hwnd