////////////////
        /// Get/Put WindowState
        private void TestWindowState()
        {
            int         hr;
            WindowState WindowState1, WindowState2;

            // Read WindowState
            hr = m_ivw.get_WindowState(out WindowState1);
            Marshal.ThrowExceptionForHR(hr);

            // Write new value
            hr = m_ivw.put_WindowState(WindowState.Show);
            Marshal.ThrowExceptionForHR(hr);

            // Read the value
            hr = m_ivw.get_WindowState(out WindowState2);
            Marshal.ThrowExceptionForHR(hr);

            // Make sure the value we set is what we just read
            Debug.Assert(WindowState1 != WindowState2, "Put/Get WindowState");
        }