public int GetHostInfo(Interop.DOCHOSTUIINFO info) { info.dwDoubleClick = Interop.DOCHOSTUIDBLCLICK_DEFAULT; int flags = 0; if (hostControl.AllowInPlaceNavigation) { flags |= Interop.DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION; } if (!hostControl.Border3d) { flags |= Interop.DOCHOSTUIFLAG_NO3DBORDER; } if (!hostControl.ScriptEnabled) { flags |= Interop.DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE; } if (!hostControl.ScrollBarsEnabled) { flags |= Interop.DOCHOSTUIFLAG_SCROLL_NO; } if (hostControl.FlatScrollBars) { flags |= Interop.DOCHOSTUIFLAG_FLAT_SCROLLBAR; } info.dwFlags = flags; return(Interop.S_OK); }
public int GetHostInfo(Interop.DOCHOSTUIINFO info) { info.dwDoubleClick = Interop.DOCHOSTUIDBLCLICK_DEFAULT; int flags = 0; if (hostControl.AllowInPlaceNavigation) { flags |= Interop.DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION; } if (!hostControl.Border3d) { flags |= Interop.DOCHOSTUIFLAG_NO3DBORDER; } if (!hostControl.ScriptEnabled) { flags |= Interop.DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE; } if (!hostControl.ScrollBarsEnabled) { flags |= Interop.DOCHOSTUIFLAG_SCROLL_NO; } if (hostControl.FlatScrollBars) { flags |= Interop.DOCHOSTUIFLAG_FLAT_SCROLLBAR; } // Opt-In to High DPI Behavior for Web Browser Controls (WebOCs -if IE8) // http://msdn.microsoft.com/en-us/library/cc849094(VS.85).aspx if (HtmlControl.CurrentIEVersion.Major >= 8) { flags |= Interop.DOCHOSTUIFLAG_DPI_AWARE; } info.dwFlags = flags; return(Interop.S_OK); }
public int GetHostInfo(Interop.DOCHOSTUIINFO info) { info.dwDoubleClick = (int)Interop.DOCHOSTUIDBLCLICK.DEFAULT; int flags = 0; if (htmlEditor.NoTextSelection) { flags |= (int)Interop.DOCHOSTUIFLAG.DIALOG; } if (htmlEditor.AllowInPlaceNavigation) { flags |= (int)Interop.DOCHOSTUIFLAG.ENABLE_INPLACE_NAVIGATION; } if (htmlEditor.ImeReconversion) { flags |= (int)Interop.DOCHOSTUIFLAG.IME_ENABLE_RECONVERSION; } if (!htmlEditor.Border3d) { flags |= (int)Interop.DOCHOSTUIFLAG.NO3DBORDER; } if (!htmlEditor.ScriptEnabled) { flags |= (int)Interop.DOCHOSTUIFLAG.DISABLE_SCRIPT_INACTIVE; } if (!htmlEditor.ScrollBarsEnabled) { flags |= (int)Interop.DOCHOSTUIFLAG.SCROLL_NO; } if (htmlEditor.FlatScrollBars) { flags |= (int)Interop.DOCHOSTUIFLAG.FLAT_SCROLLBAR; } if (htmlEditor.BlockDefault == BlockDefaultType.DIV) { flags |= (int)Interop.DOCHOSTUIFLAG.DIV_BLOCKDEFAULT; } if (htmlEditor.XPTheming) { flags |= (int)Interop.DOCHOSTUIFLAG.THEME; } else { flags |= (int)Interop.DOCHOSTUIFLAG.NOTHEME; } // IE 6 Enhancements flags |= (int)Interop.DOCHOSTUIFLAG.DISABLE_EDIT_NS_FIXUP; flags |= (int)Interop.DOCHOSTUIFLAG.DISABLE_UNTRUSTEDPROTOCOL; // IE 7 Enhancements flags |= (int)Interop.DOCHOSTUIFLAG.USE_WINDOWLESS_SELECTCONTROL; // IE 8 Enhancements if (htmlEditor.AutoWordSelection) { //flags |= (int)Interop.DOCHOSTUIFLAG.AUTOWORD; } info.dwFlags = flags; return(Interop.S_OK); }