Catch lost focus event on dockable pane with CMFCPropertyGrid

262 Views Asked by At

I have a trouble with CMFCPropertyGrid placed on a dockable pane. When I edit value in the grid and do not finish the edit then click on the document's view, the value stills old. To update it I (as a user) have click the dockable pane again and enter on the value to finish edit and update the value. Everything works fine when I click on the white space of the grid while editing value.

What I tried. I tried to catch ON_WM_KILLFOCUS and ON_WM_ACTIVATE of the dockable pane. But these message are not cought when click on the document's view as I described.

How can I process the events to call the grid's EndEdit method when clicking somewhere outside the dockable pane during text edits in CMFCPropertyGrid?

1

There are 1 best solutions below

2
On BEST ANSWER

The value is likely being edited inside an Edit control. I would look for the EN_KILLFOCUS notification code.