mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
set the control focus when clicking on it
svn path=/trunk/; revision=10047
This commit is contained in:
parent
4a76a3915b
commit
1ef5953679
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue