taskbar

Placing toolbar into Windows taskbar (ala language bar)

浪子不回头ぞ 提交于 2019-12-09 18:37:28
问题 I'm currently in the process of writing a Windows MFC app to quickly search our corporate DMS. The idea is to have a button placed at the right hand edge of the windows taskbar much like the language bar, that when clicked, would popup the search interface. I can't seem to find much regarding how placing items in the taskbar like this is performed, can anyone point me to some useful resources or examples? I'd prefer native API resources (that is, not .NET) if possible. Thanks! 回答1: Avoid

Add to right click application menu in taskbar in .NET

放肆的年华 提交于 2019-12-09 17:25:40
问题 Most applications only have "Restore, Move, Size, Minimize, Maximize and Close", however MS SQL offers extra options "Help, Customize view". Along those lines, is it possible to add to the right click menu of an application in the task bar? Note: I'm not referring to an icon in the notification area next to the clock. 回答1: This is a simpler answer I found. I quickly tested it and it works. My code: private const int WMTaskbarRClick = 0x0313; protected override void WndProc(ref Message m) {

Using the TaskBarItemInfo in WPF for the progress bar in Win 7 taskbar

荒凉一梦 提交于 2019-12-09 16:28:20
问题 Does anybody have a WPF example of updating the ProgressState through the available enum states when progressing through ProgressValue? I have the following code which binds my progress value to run from 0 to 1: <Window.TaskbarItemInfo> <TaskbarItemInfo Description="An app with a taskbar info description" ProgressValue="{Binding Count}" ProgressState="Normal"/> </Window.TaskbarItemInfo> But, what is a good way to go from None to Normal to None or other flows: None-Normal-Paused-Normal-None .

Application in the Taskbar

荒凉一梦 提交于 2019-12-09 10:58:41
问题 Can you give me an example on how to put my application form in the taskbar? like Windows media player or Window search when minimize. 回答1: What you are looking for is creating an Application Desktop Toolbar (also known as AppBar). The main function you use to register your application window as an AppBar is SHAppBarMessage. To get you started, you can look at this old appbar example with C++. If you want to do it in C#, there's a thread that discusses some details on how to do it in WPF. I

MessageBox.Show flavor that shows up on the taskbar

旧时模样 提交于 2019-12-08 06:56:38
问题 Is there a way to call MessageBox.Show that appears in the taskbar? It would probably be best to just create a custom form and display it of course, but being a lazy programmer I want to avoid redoing the default Error and Alert notification icons you get with a good old fashioned MessageBox.Show call. 回答1: Try using the MessageBoxOptions enum: MessageBox.Show("Test", "Test", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions

nsis - remove pinned icon from taskbar on uninstall

[亡魂溺海] 提交于 2019-12-08 05:38:25
问题 I'm working on an app for a company and they requested that if the app is pinned to the taskbar, when uninstalling the app should be unpinned. If I just delete the icon from quicklaunch\user pinned\taskbar then it leaves a blank icon on the taskbar. I need to somehow actually unpin it. The only thing I've come across is installing winshell plugin (http://nsis.sourceforge.net/WinShell_plug-in) and then calling IStartMenuPinnedList::RemoveFromList (https://msdn.microsoft.com/en-us/library

Background app screenshot showing wrong orientation after double tapping home

╄→гoц情女王★ 提交于 2019-12-08 02:06:19
问题 My app is Landscape only, and all is fine until it's sent to the background. When my app is in the background, and I double-tap Home to bring up the task switcher, my app screenshot is displayed as Portrait. The screenshot was taken as Landscape, but is skewed to display as Portrait. Note, I am upgrading my app from a previous version to Xcode 6, iOS 7/8. My app doesn't do any background processing. Any help would be appreciated. I'm assuming I'm missing a setting or call somewhere since I've

How do you display Taskbar notifications?

感情迁移 提交于 2019-12-07 12:12:29
问题 How would one go about displaying taskbar notifications? I want to write an app that periodically displays a flash card esque notification, the intention is to see if a 5 second or so distraction every hour can help with language learning. 回答1: For the application you describe, I probably wouldn't use a notification icon or taskbar icon. You'll likely need a larger window displayed, with larger font. I'd open a frameless window (possibly faded or scrolled into view) that sits in the lower

Hiding window from taskbar in C# with WinAPI

。_饼干妹妹 提交于 2019-12-07 07:11:39
问题 Believe me, I have Googled it and expected it to be a fairly easy find - turns out it isn't. I have my window handle, but no form. How do I do it? Thanks! 回答1: Declare these: [DllImport("user32.dll", SetLastError = true)] static extern int GetWindowLong(IntPtr hWnd, int nIndex); [DllImport("user32.dll")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); private const int GWL_EX_STYLE = -20; private const int WS_EX_APPWINDOW = 0x00040000, WS_EX_TOOLWINDOW = 0x00000080;

C# Showing Buttons on taskbar thumbnails

情到浓时终转凉″ 提交于 2019-12-06 20:18:42
问题 In WMP, I have been shown buttons on the taskbar thumbnail. How can I make them for my winforms app in C#? 回答1: The WindowsAPICodePack contains a control called ThumbnailToolBarButton that you can use to get this functionality going. You'll need to make sure you have icons for each of the buttons (as I don't believe you can put text on them), and then it should be a simple matter of creating new controls and adding relevant event handlers. Sourced from here. 回答2: XAML <Window.TaskbarItemInfo>