![]() Using the FindWindowEx API, we search the window that we are looking for by window name or class name. Under the callback, we use the handle to search the child windows or controls. For each window, it will get the handle and pass it to the specified callback. The code above will first enumerate all top-level windows in the screen using the EnumWindows API. HWND hDesk = FindWindowEx( hChild, NULL, _T( " SysListView32"), NULL ) ĮnumWindows( EnumWindowsProc, (LPARAM)&hWnd ) HWND hChild = FindWindowEx( hwnd, NULL, _T( " SHELLDLL_DefView"), NULL ) Copy Code BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |