4 ms·
Which new context menu is that?
by native_samples 5y ago
Which new context menu is that?
- WorldMaker 5y agoWindows 11 File Explorer now defaults to a new context menu when right clicking [1] with the modern "command bar" approach (first seen in OneNote for a number of years now, with the most common options collapsed to icons on a "toolbar" at the top/bottom closest to the mouse). It shouldn't be a surprise that extensions to it still use COM (extensions to File Explorer have always used COM). Especially because these new COM interfaces for Shell Extension have been added retroactively all the way back to Windows 7. (The new ones differ from the old ones in providing more data to Windows for grouping/merging the extensions into submenus than previously supported.) [1] Random image search example: https://cdn.mos.cms.futurecdn.net/LNbaeoqJymdkQ3uSK7MeKY-970-80.png https://cdn.mos.cms.futurecdn.net/LNbaeoqJymdkQ3uSK7MeKY-970... (ETA: Useful blog post: https://blogs.windows.com/windowsdeveloper/2021/07/19/extending-the-context-menu-and-share-dialog-in-windows-11/ https://blogs.windows.com/windowsdeveloper/2021/07/19/extend...)
- native_samples 5y agoAh ha, very useful, thanks. I guess I can see why they used COM for this, it's the path of least resistance for them given the existing code, and I suppose it means you can write extensions in other languages too (though my memories of doing this are pretty horrible).