public void StartSubclass(IntPtr hWnd) { // delegate for the new wndproc newWndProc = new Win32.USER32.Win32WndProc(MyWndProc); if(oldWndProc.ToInt32() != 0) Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); else oldWndProc = Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); }
public void StartSubclass(IntPtr hWnd) { // delegate for the new wndproc newWndProc = new Win32.USER32.Win32WndProc(MyWndProc); if (oldWndProc.ToInt32() != 0) { Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); } else { oldWndProc = Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); } }
public void StartSubclass(IntPtr hWnd,AxSHDocVw.AxWebBrowser browser) { // delegate for the new wndproc newWndProc = new Win32.USER32.Win32WndProc(MyWndProc); if(oldWndProc.ToInt32() != 0) Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); else oldWndProc = Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); if(browser!= null) { browserControl = browser; } }
public void StartSubclass(IntPtr hWnd, AxSHDocVw.AxWebBrowser browser) { // delegate for the new wndproc newWndProc = new Win32.USER32.Win32WndProc(MyWndProc); if (oldWndProc.ToInt32() != 0) { Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); } else { oldWndProc = Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); } if (browser != null) { browserControl = browser; } }
/// <summary> /// App shre fixing ............ /// </summary> /// <param name="hWnd"></param> /// <param name="browser"></param> public void StartSubclass(IntPtr hWnd) { // delegate for the new wndproc newWndProc = new Win32.USER32.Win32WndProc(MyWndProc); if(oldWndProc.ToInt32() != 0) Win32.USER32.SetWindowLong(hWnd,Win32.USER32.GWL_WNDPROC, (Win32.USER32.Win32WndProc)newWndProc); else oldWndProc = Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); //oldWndProc = SetWindowLong(hWnd,-12, newWndProc); //MessageBox.Show(SetWindowLong(hWnd,-12, newWndProc).ToString()); }
public void StartSubclass(IntPtr hWnd,AxSHDocVw.AxWebBrowser browser) { // delegate for the new wndproc //System.Diagnostics.Debug.Write("calling mywndproc from startsybclass"); try { newWndProc = new Win32.USER32.Win32WndProc(MyWndProc); hWndTemp = hWnd; if(oldWndProc.ToInt32() != 0) Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); else oldWndProc = Win32.USER32.SetWindowLong(hWnd, Win32.USER32.GWL_WNDPROC, newWndProc); if(browser!= null) { if((browser.LocationURL != null) || (browser.LocationURL != "")) { navigationCompleted = true; } browserControl = browser; SinkNavigationEvents(browser); try { if(browser.Document != null) { IHTMLDocument2 html = (IHTMLDocument2)browser.Document; haveFrames= (html.frames.length > 0); } } catch(Exception ex) { WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("Module ::: WebSharing public void StartSubclass(IntPtr hWnd,AxSHDocVw.AxWebBrowser browser)",ex,"",false); } } SinkExcel(); int nRegion = Win32.GDI32.CreateRectRgn(10,10,50,100); } catch(Exception ex) { WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("Module ::: WebSharing public void StartSubclass(IntPtr hWnd,AxSHDocVw.AxWebBrowser browser)",ex,"",false); } //browser.Region = new Region(new Rectangle(10,10,20,30)); }