Your best source of information and news about winvista , windows and windows vista on the internet 你最好的信息來源和新聞winvista時, WindowsWindows Vista於互聯網

Vista ARTICLES Vista的文章 TOP 50 50強 Vista VIDEOS Vista的影片 Vista SOFT Vista的軟 Vista HELP Vista幫助

namespace名字空間

You are currently browsing the articles from您正在瀏覽文章 MS Windows Vista Compatible Software微軟視窗Vista的兼容軟件 matching the category namespace .選配類名字空間

Shell Namespace Extension: Adding Custom Command Module Items殼牌名字空間延伸:加入定制的指揮方艙項目

Overview 概況

In my 在我 earlier post 早些時候郵政 , 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”. ,我發現如何創造一個空殼名字空間擴展使用默認ishellview執行(也稱為defview ) 。一件事,你可能已經注意到,從樣本是該指令艙是無效的,甚至默認的項目,如"組織"和"意見" 。

Commands Module - FolderViewImpl

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 如果你正在開發你自己的名字空間中,要對包括默認的按鈕和/或加入自己的元素,以命令模塊為好,你怎麼做到這一點呢?答案:你必須落實 IExplorerCommand iexplorercommand , IExplorerCommandProvider iexplorercommandprovider and IEnumExplorerCommand ienumexplorercommand 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. 下面我說什麼每個接口是用於和你需要做什麼,以正確地貫徹執行,他們在你的代碼。

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 之後,你的名字空間是滿載,殼牌會問你的名字空間,為的一個實例是一個iexplorercommandprovider這個接口暴露了兩個方法: getcommand和getcommands 。殼牌呼喚getcommand方法檢索特定對象iexplorercommand相匹配的供給導向(每個命令是確定由一名導) 。

Click to continue reading "Shell Namespace Extension: Adding Custom Command Module Items"點擊繼續閱讀"空殼名字空間延伸:加入定制的指揮方艙物品"

Written by chrdavis on 寫就chrdavis September 5th, 2007 2007年9月5日 with no comments 沒有評論 .
Read more articles on 查看更多文章 shell 殼牌 and namespace 名字空間 and Coding 編碼 and API 空氣污染指數 and Programming 編程 and vista Vista中 and Windows Vista Windows Vista中 .