Is it possible to see where control focus is being lost to?
<p>I have a <code>ClistCtrl</code> (wraps Windows list view for non-MFC users) on a dialog. I set functionality that when the list loses focus, any selected items are unselected.</p>

<p>I also have a "remove items" button, whose on-click handler will delete any selected items in the list.</p>

<p>The idea is you select items in the list, and then either click the button to remove these items, or click somewhere else and the selection is cancelled.</p>

<p><em>But</em>, when you click the delete button, the list loses focus <em>first</em> and therefore nothing happens! Is there a way around this?</p>