Beispiel #1
0
		internal static void RelayApplicationActivate(bool bActivate)
		{
			ParentMsgHandler[] handlers=new ParentMsgHandler[m_MdiChildParentHandlers.Count];
			m_MdiChildParentHandlers.Values.CopyTo(handlers,0);
			foreach(ParentMsgHandler handler in handlers)
			{
                if (bActivate)
                    handler.ApplicationActivate();
                else
                    handler.ApplicationDeactivate();
			}
		}
Beispiel #2
0
		internal static void RegisterOwnerParentMsgHandler(IOwner owner, Form parentForm)
		{
			if(m_MdiChildParentHandlers.Contains(parentForm))
			{
				ParentMsgHandler handler=m_MdiChildParentHandlers[parentForm] as ParentMsgHandler;
				if(!handler.IsOwnerRegistered(owner))
					handler.RegisterOwner(owner);
			}
			else
			{
				ParentMsgHandler handler=new ParentMsgHandler(true);
				handler.AssignHandle(parentForm.Handle);
				handler.RegisterOwner(owner);
				m_MdiChildParentHandlers[parentForm]=handler;
			}
		}