Search code examples
windowswinapi

Getting the list-view control handle from an IShellView instance


For what I understand File Explorer uses a list-view control to display the files. (For example How do I arrange or sort the desktop icons in c#?).

If I have an object that implements IShellView is it possible to get the window handle that could be used with LVM messages? LVM messages like these https://learn.microsoft.com/en-us/windows/desktop/Controls/bumper-list-view-control-reference-messages require handle of type HWND to be sent messages to.


Solution

  • Like Raymond Chen explained in his comment ListView is not used anymore except on the desktop.