windows-7

Removing QComboBox “Drop-Down” Animation

我们两清 提交于 2019-12-23 01:13:41
问题 I am using Qt 4.8 and would like to get rid of the "Drop-Down" animation when clicking on a QComboBox. I also want to move it a bit. So far I've been looking at re-implementing showPopup and hidePopup but can't figure out how to make it work. Additionally, every time I try to move or style using CSS there is a white background that is always there. (See picture). Any help would be appreciated. 回答1: Use QApplication::setEffectEnabled: QApplication::setEffectEnabled(Qt::UI_AnimateCombo, false);

delete folder that contains thumbs.db

橙三吉。 提交于 2019-12-23 00:29:17
问题 Sometimes I can't delete a folder, because it contains thumbs.db. I have a lot of folders (which contain images too) and I will need to move them in a different place and delete the original folder. But I am getting this error: the folder can't be deleted because "thumbs.db" is being used by another process. Moving and deleting is made in c#, and right now it skips deleting the folders that have thumbs.db, which will result in a lot of empty folders. Is there a way to delete the folder even

Detect a taskbar icon flashing

ぐ巨炮叔叔 提交于 2019-12-22 17:55:57
问题 I want to make a script that detects when taskbar icon flashes, and activates a program. I would like to use AutoIt or the Windows API. How to detect when a program's taskbar icon starts flashing? 回答1: To answer your question directly, there is no easy (documented and reliable) way to detect the flashing of the window . It occurs as a result of FlashWindow/FlashWindowEx. A very intrusive and heavy-handed option is to perform global hooking of both APIs. You could do this by injecting a DLL to

Delphi 6 IDE and apps working on windows 7 64 bit?

蹲街弑〆低调 提交于 2019-12-22 10:56:23
问题 I have a commercial app that is developed with Delphi 6. Ive been developing under windows xp 32 bit, but am about to get a new development machine with Windows 7 64 bit. Will Delphi 6 install and work in the new environment ? The developed app also uses the BDE, on vista I couldnt get it to work at all, which meant my customers had to remain on windows xp. I dont want this to be the case for windows 7. Does the BDE have any problems working with windows 7 ? (or is it best to use

Installing OpenSSL on Windows 7 32bit

落爺英雄遲暮 提交于 2019-12-22 10:15:49
问题 Can anyone list a set of complete steps to install OpenSSL on Windows 7? I have tried a lot of things, but invariably, one or the other library is found missing. I know that OpenSSL depends on libxml2, pthread libraries and so on. I have tried downloading them from various sources, but I am a bit frustrated by a lot of errors that are showing up one after the other. If someone has done it before, it would be great if you can help me with the list of steps. 回答1: Download the latest OpenSSL

Changing the icon shown in a taskbar group for a multi window application

寵の児 提交于 2019-12-22 10:12:23
问题 On Windows 7 an application can control how to group their Windows on the taskbar. Windows has some default settings related to the executable, how the shortcut was created, the name of the program, etc. to apply some default grouping. The problem with host based applications like Java, is that the same executable is used by many programs so Windows has some registry settings to set that javaw.exe is a host app. When this happens, applications must configure at runtime how to group Windows

How can I programmatically distinguish hard links from real files in Windows 7?

依然范特西╮ 提交于 2019-12-22 10:08:34
问题 I have a difference between files size and used disk space (total file size is even more than disk size). I suppose because there are many hard links exist (to WinSxS components) in Windows 7/Vista. But how can I programmatically distinguish hard links from real files in Windows 7? 回答1: You can't, because all files are hard links. No. Really. A file is just a hard link to a data chunk -- a listing in a directory. (Perhaps you mean symlinks? You can distinguish those...) Use the builtin

Can't write to application directory in Program Files

谁都会走 提交于 2019-12-22 08:52:55
问题 I need to write to some files in the application directory which is installed under Program Files. I know that with UAC enabled on Vista and Windows 7, users can't modify files in this directory. However, I'm aware of the UAC Virtualization that was added in Vista which basically redirects writes to the virtualstore directory . In Vista this works great and my files are actually written to this virtualstore directory. However, on Windows 7 I am getting access denied errors and my files are

Can't write to application directory in Program Files

安稳与你 提交于 2019-12-22 08:51:23
问题 I need to write to some files in the application directory which is installed under Program Files. I know that with UAC enabled on Vista and Windows 7, users can't modify files in this directory. However, I'm aware of the UAC Virtualization that was added in Vista which basically redirects writes to the virtualstore directory . In Vista this works great and my files are actually written to this virtualstore directory. However, on Windows 7 I am getting access denied errors and my files are

How to get the number of open TCP connections held by a certain process in .NET

廉价感情. 提交于 2019-12-22 08:38:14
问题 I need to monitor the number of open TCP connections held by a single process on a 64 bit Windows 7 machine from .NET 4.0. This article describes the undocumented Win32 API method "AllocateAndGetTcpExTableFromStack" that accomploshes this task on 32 bit windows: http://www.codeproject.com/KB/IP/iphlpapi.aspx?display=Print But this fails on my machine (presumably because I am on 64 bit) with: Unable to find an entry point named 'AllocateAndGetTcpExTableFromStack' in DLL 'iphlpapi.dll'. How can