From 1ef595367943b98798d931d6649caec0583be925 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 9 Jul 2004 15:53:34 +0000 Subject: [PATCH] set the control focus when clicking on it svn path=/trunk/; revision=10047 --- reactos/subsys/system/regedit/hexedit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/regedit/hexedit.c b/reactos/subsys/system/regedit/hexedit.c index 332a937e372..edec6af814f 100644 --- a/reactos/subsys/system/regedit/hexedit.c +++ b/reactos/subsys/system/regedit/hexedit.c @@ -748,10 +748,12 @@ HEXEDIT_WM_LBUTTONDOWN(PHEXEDIT_DATA hed, INT Buttons, POINTS Pt) POINT EditPos; DWORD Hit = HEXEDIT_HitRegionTest(hed, Pt); + SetFocus(hed->hWndSelf); + hed->Position = HEXEDIT_PositionFromPoint(hed, Pt, Hit, &EditPos, &NewField); hed->EditingField = NewField; hed->CaretCol = EditPos.x; - hed->CaretLine = EditPos.y; + hed->CaretLine = EditPos.y; HEXEDIT_MoveCaret(hed, TRUE);