Example #1
0
 public void Destroy()
 {
     if (_wnd != null)
     {
         _wnd.Destroy();
         _wnd  = null;
         _host = null;
     }
 }
Example #2
0
            protected override HandleRef BuildWindowCore(HandleRef hwndParent)
            {
                Debug.Assert(_wnd == null);

                OmniViewHost.Setup();                // ensures creating the dummy window before the child one
                _wnd = new SciterWindow();
                _wnd.CreateChildWindow(hwndParent.Handle, SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_CHILD | SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_OWNS_VM | SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_ENABLE_DEBUG);
                _wnd.ModifyStyleEx(PInvokeWindows.SetWindowLongFlags.WS_EX_CLIENTEDGE, 0);
                _wnd.SetSciterOption(SciterXDef.SCITER_RT_OPTIONS.SCITER_SET_DEBUG_MODE, new IntPtr(1));                // SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_ENABLE_DEBUG don't work
                Utils.DebugOutputString("BuildWindowCore - " + _wnd._hwnd.ToString());

                _host = new OmniViewHost(_wnd);
                _host.SetupPage("host.html");

                if (OnCreated != null)
                {
                    OnCreated(null, null);
                }

                return(new HandleRef(this, _wnd._hwnd));
            }
Example #3
0
 public SciterDOH(OmniViewHost host)
 //: base(host._wnd._hwnd)// FIX ME!!!!!!!!!!!!!!
 {
     Debug.Assert(host._wnd._hwnd != IntPtr.Zero);
     _host = host;
 }