taskbar

Adding items to the taskbar application menu

ⅰ亾dé卋堺 提交于 2019-11-29 05:09:10
I have an application. I would like to add my particular items to the right-click application's taskbar menu via C#. I want to add both permanent items and temporary items. If I haven't made you to understand, this is the menu I am talking about: This feature is called a JumpList and is for Windows 7. It is part of the Microsoft API. How to use this with C# has been documented thoroughly here and here . In order to be able to deal with Jumplist classes in Windows Forms, you'd have to include these DLLs ( Microsoft.WindowsAPICodePack.dll and Microsoft.WindowsAPICodePack.Shell.dll ) in your

Reserve screen area in Windows 7

妖精的绣舞 提交于 2019-11-29 04:43:42
Is it possible to reserve a screen area near an edge of the screen for your app in Windows 7? It would behave similar to the Windows taskbar (i.e. maximized windows would not overlap with it). I'm writing a taskbar app with proper support for multiple monitors. The primary purpose is to show a taskbar on each screen containing only the apps on that screen. None of the existing solutions ( Ulltramon , DisplayFusion ) I know of work for Win 7, and none are open source. C# code would be nice, but any hints are appreciated as well. I'm unsure of how to do this directly in C#, but in native code

Is there a Windows API for adding badges to taskbar icons?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 04:03:09
问题 Spotify recently added a feature where the taskbar icon would have a red iOS-style badge with the number of songs in your inbox. The badge itself is definitely part of the icon, but I was wondering if the number might be added with an official API. If not, how might they be doing it? I've never had more than a few songs in my inbox, so maybe it just doesn't shows 1-9 and then 10+ or something, or could they be dynamically creating the image and setting it as the icon? I wasn't aware you could

Properly maximizing WPF window with WindowStyle=None

…衆ロ難τιáo~ 提交于 2019-11-29 02:32:47
问题 There are two problems with WPF windows when the WindowStyle=None option is used. The window covers the Taskbar when maximized. Once maximized, the window cannot be dragged down to unmaximize. How can these problems be corrected? Preferably without using Windows.Forms. 回答1: There are other answers to these problems online. However none of them take into acount how the solution will perform on setups with multiple monitors. Especially if the primary monitor is not the left-most in the setup. I

Hide a form's taskbar button without using WS_EX_TOOLWIN

我的梦境 提交于 2019-11-29 02:30:11
I need to hide a Windows form from the taskbar but I can't use WS_EX_TOOLWINDOW because I need the system menu and min/max buttons on the form's title bar. If I switch the form to a tool window at runtime the form skinning is stuffed up. From searching on the Web I see that VB has a ShowInTaskbar property and I'm wondering if this would do what I want, and whether it can be implemented in Delphi 2006. Also this project is a COM server and has no MainForm, etc. There's an interesting discussion of this exact problem here (from a VB6 persepective). The most relevant bit from your question's

How can I make JOptionPane dialogs show up as a task on the taskbar?

。_饼干妹妹 提交于 2019-11-29 02:20:06
问题 Edit: The question follows the horizontal rule; my own answer precedes it. Based on help from Oscar Reyes, I crafted this solution: import javax.swing.JOptionPane; import javax.swing.JFrame; public class MyApp extends JFrame { public static void main(String [] args) { new MyApp(); } public MyApp() { super("MyApp"); setUndecorated(true); setVisible(true); setLocationRelativeTo(null); String i = JOptionPane.showInputDialog(this, "Enter your name:", getTitle(), JOptionPane.QUESTION_MESSAGE); if

C# - Get list of open tasks

。_饼干妹妹 提交于 2019-11-28 23:42:37
I'm trying to find a way to get the open tasks in C#. I've been searching on google and can only find how to get a list of the processes . I want the only the tasks that would show up on the taskbar. Also, along with that, it would be cool if I could get the process the task is associated with. And if possible get the thumbnail images that Vista uses for the ALT-TAB menu, like in this image: I assume that I will have to use pinvokes because it really doesn't look like there are any libraries to do this already. Any ideas? This article should pretty much tell you exactly what to do, it shows

Programmatically change the icon of the executable

老子叫甜甜 提交于 2019-11-28 23:36:05
I am developing an application called WeatherBar . Its main functionality is based on its interaction with the Windows 7 taskbar — it changes the icon depending on the weather conditions in a specific location. The icons I am using in the application are all stored in a compiled native resource file (.res) — I am using it instead of the embedded resource manifest for icons only. By default, I modify the Icon property of the main form to change the icons accordingly and it works fine, as long as the icon is not pinned to the taskbar. When it gets pinned, the icon in the taskbar automatically

Determining if a Window Has a Taskbar Button

坚强是说给别人听的谎言 提交于 2019-11-28 21:39:46
问题 I am looking for a way to check if a given window has a taskbar button. That is, given a handle to a window, I need a TRUE if the window is in the taskbar, and FALSE otherwise. Conversely, I am wondering if there is a way to get a handle to the window that belongs to a given taskbar button, which I suppose would require a way to enumerate through the taskbar buttons. (The first former is the part that I need, and the latter part is optional.) Thanks a lot. 回答1: Windows uses heuristics to

How to make Eclipse behave well in the Windows 7 taskbar?

十年热恋 提交于 2019-11-28 16:36:32
All other apps that can be pinned to the taskbar behave well. But Eclipse doesn't show recently open projects when I right click it. It also doesn't allow to pin some projects inside it. Note that I have the JS version of Eclipse Helios. Which spawns a new and different taskbar icon after loading. whlk Specify the latest available Java VM in your eclipse.ini . I.e.: -vm jdk1.6.0_10\jre\bin\client\jvm.dll Make sure they are on separate lines Anything after the "vmargs" is taken to be vm arguments ( More info ) Or alternatively add the java bin folder to your Windows PATH before the "windows32"