I'm trying to create a modeless dialog with push-pin support, like the one in VC5 "Properties" dialog. I've got the pin working, but I can't figure out how to notify the dialog that it has lost focus. When the pin is not "pinned" I want the dialog to hide itself if the user clicks on the main CFormView, otherwise to update itself with new data; very similar to VC5's popup. What messages do I need to look for in the dialog to accomplish this? Any help would be great. Thanks.