Yes, I had
But MDIActivate didn't work with tabbed document style. I had used CMDIFrameWnd::SetActiveView alternatively and this makes the objective view active but an exception occurs when I close arbitrary documents.