mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
set the control focus when clicking on it
svn path=/trunk/; revision=10047
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user