// ************************************************************** // ************************************************************** // Prepare the event data structure private void PrepareEventData(CbtEventArgs e) { e.Handle = m_hwnd; e.Title = m_title; e.ClassName = m_class; e.IsDialogWindow = m_isDialog; }
protected virtual void OnWindowActivated() { if (WindowActivated != null) { CbtEventArgs e = new CbtEventArgs(); PrepareEventData(e); WindowActivated(this, e); } }