mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
set the control focus when clicking on it
svn path=/trunk/; revision=10047
This commit is contained in:
parent
4a76a3915b
commit
1ef5953679
|
@ -748,6 +748,8 @@ 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;
|
||||
|
|
Loading…
Reference in a new issue