protected override void WndProc(ref Message m) { base.WndProc(ref m); if (m.Msg != NWMConstants.WM_MOUSEACTIVATE) { return; } Control c = NControlHelper.ControlFromPoint(Control.MousePosition); if (c is NDecoratorBase) { m_Properties.SelectedObject = c; } Control decorator = NControlHelper.GetParentOfType(c, typeof(NDecoratorBase)); if (decorator != null) { m_Properties.SelectedObject = decorator; } }