terminal/src/cascadia/WindowsTerminal
Mike Griese 584e4498ee
Use MONITOR_DEFAULTTONEAREST so we can restore properly from minimized (#5213)
## Summary of the Pull Request

When we're restoring from minimized, that `MonitorFromWindow` call is returning null. Curious that we're getting null here, when [MSDN states](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-monitorfromwindow):
> If the window is currently minimized, MonitorFromWindow uses the rectangle of the window before it was minimized.

Turns out, `MONITOR_DEFAULTTONEAREST` just fixes this.

## References
* #4857 - original PR that added this code block

## PR Checklist
* [x] Closes #5209
* [x] I work here
* [ ] Tests added/passed
* [n/a] Requires documentation to be updated

## Validation Steps Performed
Verified manually
2020-04-01 21:19:04 +00:00
..
AppHost.cpp Manually pass mouse wheel messages to TermControls (#5131) 2020-04-01 16:58:16 +00:00
AppHost.h Manually pass mouse wheel messages to TermControls (#5131) 2020-04-01 16:58:16 +00:00
BaseWindow.h Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
IslandWindow.cpp Manually pass mouse wheel messages to TermControls (#5131) 2020-04-01 16:58:16 +00:00
IslandWindow.h Manually pass mouse wheel messages to TermControls (#5131) 2020-04-01 16:58:16 +00:00
main.cpp Tunnel F7 keypresses directly into special handlers in TermControl (#4807) 2020-03-05 20:35:46 +00:00
NonClientIslandWindow.cpp Use MONITOR_DEFAULTTONEAREST so we can restore properly from minimized (#5213) 2020-04-01 21:19:04 +00:00
NonClientIslandWindow.h Snap to character grid when resizing window (#3181) 2020-01-08 13:19:23 -08:00
packages.config Make the window border actually follow the user's theme (#5105) 2020-03-24 19:47:01 +00:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Manually pass mouse wheel messages to TermControls (#5131) 2020-04-01 16:58:16 +00:00
resource.h Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
WindowsTerminal.def Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
WindowsTerminal.manifest TURNS OUT CASE SENSITIVITY IS IMPORTANT (#2481) 2019-08-20 11:16:06 -07:00
WindowsTerminal.rc Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
WindowsTerminal.vcxproj Make the window border actually follow the user's theme (#5105) 2020-03-24 19:47:01 +00:00
WindowUiaProvider.cpp Upgrade UiaProviders to WRL::ComPtr (#3051) 2019-11-21 16:08:37 -08:00
WindowUiaProvider.hpp Upgrade UiaProviders to WRL::ComPtr (#3051) 2019-11-21 16:08:37 -08:00