/// <summary> /// Creates a new ControlEx object. /// </summary> /// <param name="native">If true initialises members for hosting a native control.</param> protected ControlEx(bool native) { m_native = native; #if !DESIGN #if !NDOC if (native) { //create a messagewindow to intercept native events m_msgwnd = new ControlMessageWindow(this); } #endif #endif }
/// <summary> /// Creates a new instance of HTMLViewer. /// </summary> public HTMLViewer() { #if !DESIGN //load htmlview module m_module = Core.LoadLibrary("htmlview.dll"); //get instance handle m_instance = Core.GetModuleHandle(null); //init htmlcontrol int result = InitHTMLControl(m_instance); //setup messagewindow m_msgwnd = new ControlMessageWindow(this, "DISPLAYCLASS"); #endif }
/// <summary> /// Creates a new ControlEx object. /// </summary> /// <param name="native">If true initialises members for hosting a native control.</param> protected ControlEx(bool native) { m_native = native; #if !DESIGN #if !NDOC if(native) { //create a messagewindow to intercept native events m_msgwnd = new ControlMessageWindow(this); } #endif #endif }