Shell Namespace Extension: Adding Custom Command Module Items Shell extension de nommage: Ajout de commande personnalisée module articles
Overview Aperçu
In my Dans ma earlier post Poste antérieur , I showed how to create a Shell Namespace Extension using the default IShellView implementation (also known as DefView). One thing you might have noticed from the sample is that the Commands Module is void of even the default items such as “Organize” and “Views”. , J'ai montré comment créer un Shell Extension utilisant le nommage par défaut IShellView application (aussi connu sous DefView). Une chose que vous avez peut-être remarqué de l'échantillon est que le module de commandes est vide de même les éléments par défaut comme "Organiser" et " Vues ".
If you are developing your own Namespace and want to include the default buttons and/or add your own elements to the Commands Module as well, how do you accomplish this? The answer: you must implement the Si vous développez votre propre nommage et que vous voulez inclure la valeur par défaut des boutons et / ou ajouter vos propres éléments de l'Commandes Module ainsi, comment voulez-vous accomplir cela? La réponse: vous devez appliquer le IExplorerCommand IExplorerCommand , , IExplorerCommandProvider IExplorerCommandProvider and Et IEnumExplorerCommand IEnumExplorerCommand interfaces. Interfaces.
Below I describe what each of the interfaces is used for and what you need to do to properly implement them in your code. Je décris ci-dessous ce que chacune des interfaces est utilisé et ce que vous avez à faire pour les appliquer correctement dans votre code.
IExplorerCommandProvider IExplorerCommandProvider
After your Namespace is loaded, the Shell will ask your Namespace for an instance of an IExplorerCommandProvider. This interface exposes two methods: GetCommand and GetCommands. The Shell calls the GetCommand method to retrieve a specific IExplorerCommand object that matches the supplied GUID (Each command is identified by a GUID). The Après votre nommage est chargé, le Shell va demander à votre nommage pour une instance d'IExplorerCommandProvider. Cette interface expose deux méthodes: GetCommand et GetCommands. The Shell GetCommand appelle la méthode pour récupérer un objet spécifique IExplorerCommand qui correspond au fournies GUID (Chaque commande est Identifié par un GUID).
…
Written by chrdavis on Ecrit par chrdavis sur September 5th, 2007 5 septembre 2007 with Avec no comments Pas de commentaires . .
Read more articles on Lire la suite d'articles sur shell Shell and Et namespace Namespace and Et Coding Coding and Et API API and Et Programming Programmation and Et vista Vista and Et Windows Vista Windows Vista . .














