Windows 7 taskbar - jumplist, jumplistlink and jumplistitem

I am using the Windows API code package for the Microsoft .NET Framework to try some of the new features in the Win7 taskbar user interface. I am coding in C #.

I have a question about jumplists. The entire code example presented assumes that entries in the jump list are used to call to launch a specific application or open a document, for example. a text document in the MRU list or run mspaint.exe.

I would like to implement some elements that allow me to set state in my own application (i.e. an application that interacts with the taskbar). MSN Messenger does this, for example, when you can set your status (Busy, Offline, etc.).

Try as I could, I cannot create a JUmpListItem or JumpListLink to behave this way - it treats them like applications or documents.

Does anyone have any examples of how to create an element that raises an event in the same application that created it? I am sure it is simple, but I am very stupid.

Thank you very much for your help.

+3
source share
3 answers

I believe that you will need to call your application using a special set of flags (for example, run an executable file with certain arguments). When you start the application, you check which flags are set, then send a message to the main instance of the application and exit the new instance.

+1
source

TaskBarDemo, , , , .. PDF, :

jumpList.AddUserTasks(new JumpListLink(Path.Combine(systemFolder, "C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRD32.exe"), "Open Adobe Reader")
        {
            IconReference = new IconReference(Path.Combine(systemFolder, "C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRD32.exe"), 0)
        });

, .

jumplists API, VS 2010 Beta 2 jumplists.

, .

0

These tasks are a kind of IShellLink. Then you should call ICustomDestinationList AddUserTasks. Check out the samples in the Windows 7 Tutorial.

0
source

Source: https://habr.com/ru/post/1723686/


All Articles