set the control focus when clicking on it

svn path=/trunk/; revision=10047
This commit is contained in:
Thomas Bluemel 2004-07-09 15:53:34 +00:00
parent 4a76a3915b
commit 1ef5953679

View file

@ -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);