[KBM] Constrain the buttons such that only one of the windows can be opened (#2566)

* Bypass XamlBridge Window focus handling

* Constrain only one window can be opened at a time

* Revert changes on files changed in another PR

* Changed WM_DESTROY to WM_NCDESTROY

Co-authored-by: Tomas Raies <tomas.raies@gmail.com>
This commit is contained in:
Arjun Balgovind
2020-05-01 17:34:42 -07:00
committed by GitHub
parent 06fcc2bf46
commit 8e18104f38
4 changed files with 5 additions and 5 deletions

View File

@@ -289,7 +289,7 @@ LRESULT XamlBridge::MessageHandler(UINT const message, WPARAM const wParam, LPAR
{
switch (message)
{
HANDLE_MSG(parentWindow, WM_DESTROY, OnDestroy);
HANDLE_MSG(parentWindow, WM_NCDESTROY, OnDestroy);
HANDLE_MSG(parentWindow, WM_ACTIVATE, OnActivate);
HANDLE_MSG(parentWindow, WM_SETFOCUS, OnSetFocus);
}