Questions tagged [aero-snap]
19 questions
28
votes
2 answers
Is this the only way to teach a Java Frame something about the Aero Snap feature of Windows?
If I minimize a JFrame which was Aero-snapped to the left of the screen by clicking on the minimize-button of the Windows WindowDecoration and unminimize it by Alt-Tabbing or clicking it in the Windows TaskBar, the frame gets restored correctly…

bobndrew
- 395
- 10
- 32
13
votes
2 answers
Save and restore Aero Snap position on Windows 7
Let's say I have a window and I want to save its position when the window closes and restore it when the window is opened again. The typical way to do this is to call GetWindowPlacement / SetWindowPlacement. This takes care of remember the position…

Maurice Flanagan
- 5,179
- 3
- 30
- 37
12
votes
2 answers
Why does gVim resize and reposition itself after some actions?
I started using gVim a few weeks ago. From early on, I noticed however some strange resizing of the complete gVim window when I perform certain actions. I think it is related to my use of Windows Aero Snap (on a Windows 7 x64 system).
Steps to…

Rabarberski
- 23,854
- 21
- 74
- 96
8
votes
1 answer
GetWindowPlacement gives the incorrect window position
How to find out whether a window was resized using Aero Snap feature? GetWindowPlacement function gives the latest "restored" window size. I use it as follows:
WINDOWPLACEMENT wp = {};
wp.length = sizeof(WINDOWPLACEMENT);
::GetWindowPlacement( hWnd,…

Kirill V. Lyadvinsky
- 97,037
- 24
- 136
- 212
8
votes
1 answer
Aero Snap with Borderless Window in Qt
I'm trying to create a Metro-style interface in Qt, which means not using the Windows 7 Aero border. I've already set the window to be borderless and added code to make it draggable and buttons to make it minimize, maximize, and close. However, Aero…

Keavon
- 6,837
- 9
- 51
- 79
7
votes
2 answers
Aero Snap not working for my application
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…

Magnus Österlind
- 1,380
- 1
- 12
- 13
7
votes
2 answers
Programmatically invoke Snap/Aero maximize
Is there a way to programmatically invoke the Aera maximize effect using C or C++ for a specific window/window ID?
For example:
or
(source: thebuzzmedia.com)
I am using a border-less Qt window and Qt has an API for getting the window ID. I want…

Jacob Krieg
- 2,834
- 15
- 68
- 140
5
votes
1 answer
Launch WinForm application Aerosnaped Right Aligned
This should be a simple question, but search-foo has failed me. My goal is to detect that I'm running under Aero (Vista or Windows 7) and have my application Aerosnap by default. (It turns out that a corporate application I wrote is run by pretty…

Godeke
- 16,131
- 4
- 62
- 86
3
votes
2 answers
How to get the aero snap state of a window?
When a window is resized by aero snap, User32.GetWindowPlacement(hWnd).rcNormalPosition still stores its original rectangle, while User32.GetWindowRect is affected.
Since aero snap seems independent from WINDOWPLACEMENT, now we cannot collect the…

0x269
- 688
- 8
- 20
2
votes
1 answer
WPF Custom Window: cannot "unsnap" maximized window with Win7 Aero Snap
I have a WPF application that uses a custom window frame. My problem is that I cannot "unsnap" my maximized window with Aero Snap in Windows 7.
Properties of my window:
AllowsTransparency is set to true
WindowStyle is set to None
ResizeMode is set…

Rob
- 25,984
- 32
- 109
- 155
2
votes
3 answers
Borderless window with Aero Snap too large in maximized state
I am trying to make a borderless window in Qt5.6.0, with aero-snap functionality.
Everything works, except when I maximize the window : it is too big.
My screen resolution is 2560x1440, so the window should be sized 2560x1400 (40 Pixels for the…

aveexy
- 21
- 5
2
votes
1 answer
How can i programmatically use aero snap features from C# code
I have a simple question. How can I access aero snap programmatically from my C# code. Like, if I click a button "Snap Left", I want my program window to snap to the left, just like when its drug over there manually. I looked all over SO, but all…

FrostyFire
- 3,212
- 3
- 29
- 53
1
vote
1 answer
WM_MOVING, LPARAM Gives Wrong values on aero snap
I Was working on a win32 project which uses the WM_MOVING message from WndProc to detect the new position where window is moved. but when i try to snap the window to left side the LPARAM gives wrong values for just a millisecond and gives the real…

trickymind
- 557
- 5
- 21
0
votes
1 answer
Qt5 : Aero Snap during title bar customization on Windows 10
When you customized the title bar on Windows 10, did anyone succeed in working with Aero Snap?
The basic title bar is too ugly.
I haven't solved this problem for a week. Please let me know if there is a solution, whether it is Widget or Qt Quick.
I…

김지민
- 13
- 3
0
votes
1 answer
Restore WinForms window to correct position after Aero Snap
When I drag a WinForms window to the top of the screen to perform a Maximize "Aero Snap", if I then hit the "Restore" button after this, the window is restored to the correct size but at the wrong location. It flickers to the correct location for a…

Sigenes
- 445
- 2
- 13