Close view from OnUpdate?
-
What is the best way to close (i.e., destroy) a view from its OnUpdate operation? I don't want to close the document. Currently, I am aware of the following options. I am not sure if they'd all work, or which would work best. 1. CDocument::RemoveView() 2. Post WM_CLOSE 3. Post WM_DESTROY Any help is much appreciated. Marc
-
What is the best way to close (i.e., destroy) a view from its OnUpdate operation? I don't want to close the document. Currently, I am aware of the following options. I am not sure if they'd all work, or which would work best. 1. CDocument::RemoveView() 2. Post WM_CLOSE 3. Post WM_DESTROY Any help is much appreciated. Marc
Post a WM_CLOSE. When the view gets that message, it will handle the rest for you. --Mike-- http://home.inreach.com/mdunn/ #include "buffy_sig"