mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
[AlwaysOnTop] Non-selectable border (#16085)
This commit is contained in:
@@ -96,7 +96,7 @@ bool WindowBorder::Init(HINSTANCE hinstance)
|
|||||||
m_window = CreateWindowExW(WS_EX_LAYERED | WS_EX_TOPMOST | WS_EX_TOOLWINDOW
|
m_window = CreateWindowExW(WS_EX_LAYERED | WS_EX_TOPMOST | WS_EX_TOOLWINDOW
|
||||||
, NonLocalizable::ToolWindowClassName
|
, NonLocalizable::ToolWindowClassName
|
||||||
, L""
|
, L""
|
||||||
, WS_POPUP
|
, WS_POPUP | WS_DISABLED
|
||||||
, windowRect.left
|
, windowRect.left
|
||||||
, windowRect.top
|
, windowRect.top
|
||||||
, windowRect.right - windowRect.left
|
, windowRect.right - windowRect.left
|
||||||
@@ -218,6 +218,10 @@ LRESULT WindowBorder::WndProc(UINT message, WPARAM wparam, LPARAM lparam) noexce
|
|||||||
case WM_ERASEBKGND:
|
case WM_ERASEBKGND:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
// prevent from beeping if the border was clicked
|
||||||
|
case WM_SETCURSOR:
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
return DefWindowProc(m_window, message, wparam, lparam);
|
return DefWindowProc(m_window, message, wparam, lparam);
|
||||||
|
|||||||
Reference in New Issue
Block a user