taskbar

Using wndproc in C# to minimize form on leftclick of taskbar

☆樱花仙子☆ 提交于 2019-12-13 03:34:44
问题 I have a C# application that is using wndproc to get a message for a right click to the taskbar, but I also need to use a left click to the taskbar so that I can minimize my form. The message value for right click on taskbar icon is WMTaskbarRClick = 0x0313. Does anyone know what the message value is for left click on taskbar icon? 回答1: This link may have the information you seek. Another link FWIW: I don't know that you should minimize a form when the taskbar is left clicked. The default

Taskbar Minimize C# Windows Form Problem

大兔子大兔子 提交于 2019-12-13 02:02:03
问题 I have a Windows Form application that, when the form is Activated, Deactivated, or SizeChanged, the form does something. It's rather specific. For example: Form Activated : Will set the variable isActive to true, and focus the input to an input box for someone to enter something too. Form Deactivated : Will set the variable isActive to false, so that any focus changes in the application (caused by remote machine messages, chat messages, etc), does not steal focus from other applications.

Windows 7, VB6, Launcher App and Pinning to the Taskbar

ぐ巨炮叔叔 提交于 2019-12-13 01:26:10
问题 We have an application that has a "launcher" app that sits there with a pretty UI while the main app loads in the background. Both of these apps are written in VB6 (sigh). In Windows 7, if user's pin the launcher program, we get two different icons on the taskbar (one for the main app, and then the pinned icon for the launcher program). This looks very odd. I've tried using the following function: http://msdn.microsoft.com/en-us/library/dd378422%28VS.85%29.aspx to no avail so far. I gave both

VB6 app icon in Windows 7 taskbar is blurred

南笙酒味 提交于 2019-12-13 00:43:21
问题 I have a VB6 application and one of the Form icon is set as application icon. The problem is that in Windows 7 the icon looks blurred even though the icon contains 16x16, 32x32 and 48x48 sizes. Is there a way around this problem? It tried the SendMessage(... SETICON... ICON_BIG) but it does not seems to work. 回答1: What colour depth are the icons in your ico file? VB6 (I believe) supports a maximum 8 bit colour depth (256 colours) for icons:- So if there is no size 48 x 48 icon in 8 bit colour

JavaFX changing Scenes on fullscreen mode

馋奶兔 提交于 2019-12-12 19:48:44
问题 I have problem with JavaFX. I created two scenes and switch button. When I click that button I'm changing scene. But earlier i set fullscreen on true and after I pressed the button, windows taskbar shows for a moment. Is there any way to change scenes without having this taskbar visible? There is the code: ----Main class---- import java.io.IOException; public class Main { public static void main(String[] args) throws InterruptedException, IOException { DesktopApplication.launch

Task bar progress

旧巷老猫 提交于 2019-12-12 18:05:57
问题 I've notice that some programs when they load, the icon in the task bar shows the progress, at least for windows 7. I wonder how to use that ability. Like show in the image below: 回答1: You need SetProgressState and SetProgressValue from the ITaskbarList3 interface. From Java you could try BridJ. 来源: https://stackoverflow.com/questions/7165484/task-bar-progress

WPF Taskbar Restore/Minimize doesn't always work

≡放荡痞女 提交于 2019-12-12 16:42:53
问题 So I have a large WPF application, and there is an icon on the taskbar when the application is running. I would expect that if I click the taskbar icon, the application will restore itself, or minimize if it is already showing, as is standard windows functionality. However, sometimes I have to click several times for this to work. I've done quite a bit of research/programming, but this is one fairly simple item I can not figure out. Any help is appreciated, please let me know if I need to

Detecting if a Windows process AND application is running

半城伤御伤魂 提交于 2019-12-12 16:40:27
问题 I'm investigating if there is a way to programatically check if a certain process is running as a process (in the list of running exe's) AND as an open application (i.e on the taskbar) and take action based on the results. Also - is there a way to programatically kill a process OR a running application? We are running a WAMP application on this server so ideally i'd like a way to do this using PHP, but am open to whatever will work best. Any advice? 回答1: check if a certain process is running

How to hide a taskbar entry but keep the window form?

為{幸葍}努か 提交于 2019-12-12 11:23:36
问题 I'd like to hide the taskbar entry to maximize effective space since the app has a systray icon, i dont need the taskbar entry. The app doesnt allow you to only have a systray instead of both. How can I hide a taskbar entry but keep the window form? 回答1: In what language is your application written? The API call you want is called SetWindowLong. Example Delphi code would be: procedure TForm1.FormCreate(Sender: TObject); begin ShowWindow(Application.Handle, SW_HIDE); SetWindowLong(Application

PyQt: Exit QSystemTrayIcon program after QMessageBox

僤鯓⒐⒋嵵緔 提交于 2019-12-12 09:52:22
问题 I have a simple script primarily based on QSystemTrayIcon . Everything works find, and there's an option there on right-click on the taskbar icon that exits the program. I would like to add a QMessageBox , and on choosing yes, exit the program; otherwise, do nothing. I'm familiar with all that, but it doesn't work as it should, and hence the question. I created a minimal example to demonstrate the problem: import sys from PyQt5 import QtCore, QtGui, QtWidgets class SystemTrayIcon(QtWidgets