Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Subclass command bar in Internet Explorer
  2. internal delegate int Win32WndProc(IntPtr hWnd, int Msg, int wParam, int lParam);
  3. private Win32WndProc newBodyProc = new Win32WndProc(BodyProc);
  4. public IntPtr oldBodyProc = SetWindowLong(handle for "Internet Explorer_Server", GWLP_WNDPROC, newBodyProc);
  5. private int BodyProc(IntPtr hWnd, int Msg, int wParam, int lParam)
  6. {
  7.   switch (Msg)
  8.   {
  9.      msgs to be filtered....
  10.    }
  11.  }