タスク サムネイル ボタン

Download Report

Transcript タスク サムネイル ボタン

#include <windows.h>
#pragma comment (lib, "shell32.lib")
SetCurrentProcessExplicitAppUserModelId(
L"Microsoft.Samples.AppId1");
TaskbarManager.SetCurrentProcessAppId(
"Microsoft.Samples.AppId1");
PROPVARIANT pv;
InitPropVariantFromString(
L"Microsoft.Samples.AppId2", &pv);
IPropertyStore *pps;
HRESULT hr = SHGetPropertyStoreForWindow(
hWnd, IID_PPV_ARGS(&pps));
pps->SetValue(PKEY_AppUserModel_ID, pv);
WinForms: TaskbarManager.
SetApplicationIdForSpecificWindow(IntPtr windowHandle,
string appId)
WPF: TaskbarManager. SetApplicationIdForSpecificWindow
(System.Windows.Window window, string appId)
http://channel9.msdn.com/posts/yochay/Programming-the-Windows-7-Taskbar--Working-withApplication-ID/
SHAddToRecentDocs(SHARDW_PATH, "file.ext");
RH.RegisterFileAssociations(...);
OpenFileDialog ofd = ...; ofd.ShowDialog();
JumpList jl = ...;
jl.AddToRecent("file.ext");
http://channel9.msdn.com/posts/yochay/Programming-the-Windows-7-Taskbar--Jump-Lists-Part-2/
http://channel9.msdn.com/posts/yochay/Programming-the-Windows-7-Taskbar--Using-the-TaskbarButton-Overlay-Icons-and-Progress-Bars/
http://channel9.msdn.com/posts/yochay/Programming-the-Windows-7-Taskbar--Custom-Previewsand-Thumbnail-Clips/
http://channel9.msdn.com/posts/yochay/Programming-the-Windows-7-Taskbar--Tabbed-Thumbnails/
http://windowsteamblog.com/windows/b/developers/archive/2010/05/03/windows-7programming-guide-taskbar.aspx
http://channel9.msdn.com/posts/yochay/Programming-the-Windows-7-Taskbar--Working-withApplication-ID/