mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
Hide Shortcut Guide when screenshots are taken (#605)
This commit is contained in:
committed by
GitHub
parent
b767773742
commit
e6afd33621
@@ -385,6 +385,16 @@ void D2DOverlayWindow::set_theme(const std::wstring& theme) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide the window but do not call on_hide(). Use this to quickly hide the window when needed.
|
||||
Note, that a proper hide should be made after this before showing the window again.
|
||||
*/
|
||||
void D2DOverlayWindow::quick_hide() {
|
||||
ShowWindow(hwnd, SW_HIDE);
|
||||
if (thumbnail) {
|
||||
DwmUnregisterThumbnail(thumbnail);
|
||||
}
|
||||
}
|
||||
|
||||
float D2DOverlayWindow::get_overlay_opacity() {
|
||||
return overlay_opacity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user