From 17709f1fc7979b9b37f03963770b175b7c32a62c Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Tue, 26 May 2020 23:27:31 +0200 Subject: focus and default button handling: fixes and some documenting comments --- alf/alf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alf/alf.cpp') diff --git a/alf/alf.cpp b/alf/alf.cpp index 717bd18..8929a5b 100644 --- a/alf/alf.cpp +++ b/alf/alf.cpp @@ -523,7 +523,7 @@ void ALF_SetFocus(HWND target) { if (GetWindowStyle(target) & WS_CHILD) - PostMessage(GetParent(target), WM_NEXTDLGCTL, (WPARAM)target, TRUE); + SendMessage(GetParent(target), WM_NEXTDLGCTL, (WPARAM)target, TRUE); else - PostMessage(target, WM_NEXTDLGCTL, (WPARAM)target, TRUE); + SendMessage(target, WM_NEXTDLGCTL, (WPARAM)target, TRUE); } -- cgit v1.2.3