summaryrefslogtreecommitdiff
path: root/alf/alf.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-26 23:27:31 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-26 23:27:31 +0200
commit17709f1fc7979b9b37f03963770b175b7c32a62c (patch)
treec42bca38996f48e7dd637572c5b8befc1d51bd88 /alf/alf.cpp
parentffb723122057e30244cab59ea07b18ae71104359 (diff)
focus and default button handling: fixes and some documenting comments
Diffstat (limited to 'alf/alf.cpp')
-rw-r--r--alf/alf.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}