aero

Vista/7: How to get glass color?

流过昼夜 提交于 2020-01-26 09:39:02
问题 How do you use DwmGetColorizationColor? The documentation says it returns two values: a 32-bit 0xAARRGGBB containing the color used for glass composition a boolean parameter that is true "if the color is an opaque blend" ( whatever that means ) Here's a color that i like, a nice puke green: You can notice the color is greeny, and the translucent title bar (against a white background) shows the snot color very clearly: i try to get the color from Windows: DwmGetColorizationColor

Aero Shake disabled and window docking enabled + WinApi

房东的猫 提交于 2020-01-25 09:35:59
问题 Could you help me with the problem below? How can I disable the Aero Shake but window docking should work with using WinApi? I know that these can off by winApi method SystemParametersInfo and SPI_SETWINARRANGING , but it disabled Aero Shake and window docking. The Aero Shake I can off in manual mode by Regedit or Local group Policy Editor and after that window docking will work. I cannot find a solution how do it by WinApi. Do somebody know a way for this? 来源: https://stackoverflow.com

non resizable window border and positioning

若如初见. 提交于 2020-01-18 02:13:10
问题 If i create non-resizable JFrames, and windows Aero is enabled setLocation does not seem to take account of the window border correctly. In the following code I would expect the second frame to be positioned to the right of the first frame, instead the borders are overlapping. If Aero is disabled or if I remove the calls to setResizable this is done as expected. import java.awt.Rectangle; import javax.swing.JFrame; public class FrameBorders { public static void main(String[] args) { JFrame

non resizable window border and positioning

蓝咒 提交于 2020-01-18 02:11:58
问题 If i create non-resizable JFrames, and windows Aero is enabled setLocation does not seem to take account of the window border correctly. In the following code I would expect the second frame to be positioned to the right of the first frame, instead the borders are overlapping. If Aero is disabled or if I remove the calls to setResizable this is done as expected. import java.awt.Rectangle; import javax.swing.JFrame; public class FrameBorders { public static void main(String[] args) { JFrame

non resizable window border and positioning

﹥>﹥吖頭↗ 提交于 2020-01-18 02:11:54
问题 If i create non-resizable JFrames, and windows Aero is enabled setLocation does not seem to take account of the window border correctly. In the following code I would expect the second frame to be positioned to the right of the first frame, instead the borders are overlapping. If Aero is disabled or if I remove the calls to setResizable this is done as expected. import java.awt.Rectangle; import javax.swing.JFrame; public class FrameBorders { public static void main(String[] args) { JFrame

How to disable Aero Shake minimize only on Windows 7

本秂侑毒 提交于 2020-01-16 10:08:31
问题 I need to disable AeroShake minimize while the rest Aero features still running. Fond only one solution: SystemParametersInfo(0x0083, 0, 0, 1); But this disables all Aero features. Found similar question Aero Shake disabled and window docking enabled + WinApi but no any answer behind. How to disable Aero shake minimize only? 回答1: Aero Shake—a fun little feature that lets you grab a window by the title bar and shake it to minimize all other open windows. The following solution works for me on

Desktop Window Manager capture the whole screen

冷暖自知 提交于 2020-01-13 17:09:15
问题 I was wondering if anyone could give me a starting point of how to capture the entire screen in Windows Vista/7? I know how to do it in previous versions of Windows, but would really like to keep everything in the D3D stack, without resorting to GDI/BltBit calls. I realize that you can get a live thumbnail of a given window if you have the HWND using the DWM API, but how do you get a "thumbnail" of the entire desktop? Thanks, Alex 回答1: Unfortunately, the functions to do this are in the dwmapi

How to correctly screencapture a specific window on Aero/DWM

倖福魔咒の 提交于 2020-01-11 20:05:50
问题 Background info: I have this MFC application I coded and been using for a long time that pretty much automatically saves screenshots to the hard disk when the user hits the Print Screen/Alt+Print Screen key. I have been putting off using anything related to Aero until now that I've been using Windows 7 RC for a couple of weeks. The problem: I'm using the standard GetDC/BitBlt method to capture the window contents. I have no problems with this method while doing regular full-screen grabs (no

How to correctly screencapture a specific window on Aero/DWM

喜你入骨 提交于 2020-01-11 20:03:32
问题 Background info: I have this MFC application I coded and been using for a long time that pretty much automatically saves screenshots to the hard disk when the user hits the Print Screen/Alt+Print Screen key. I have been putting off using anything related to Aero until now that I've been using Windows 7 RC for a couple of weeks. The problem: I'm using the standard GetDC/BitBlt method to capture the window contents. I have no problems with this method while doing regular full-screen grabs (no

Aero Snap not working for my application

限于喜欢 提交于 2020-01-10 14:31:58
问题 I have a problem with Aero Snap not working with the application I'm working on (Windows desktop, native C++ application), and I'm a bit confused as to what's happening, as it seems like it should just work, out of the box. I've used Spy++ on a mininal win32 application, and get the following messages when I press Win-Left: <00070> 00030D1C P WM_KEYDOWN nVirtKey:VK_LWIN cRepeat:1 ScanCode:5B fRepeat:0 fUp:0 <00071> 00030D1C P WM_KEYDOWN nVirtKey:VK_LWIN cRepeat:1 ScanCode:5B fRepeat:1 fUp:0