Ejemplo n.º 1
0
 private NativeMethods.TOOLINFO GetTOOLINFO(Control ctl)
 {
     NativeMethods.TOOLINFO toolinfo = new NativeMethods.TOOLINFO();
     toolinfo.cbSize   = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO));
     toolinfo.hwnd     = this.Handle;
     toolinfo.uFlags   = NativeMethods.TTF_TRANSPARENT | NativeMethods.TTF_SUBCLASS | NativeMethods.TTF_IDISHWND;
     toolinfo.uId      = ctl.Handle;
     toolinfo.lpszText = NativeMethods.LPSTR_TEXTCALLBACKW;
     return(toolinfo);
 }
Ejemplo n.º 2
0
 private NativeMethods.TOOLINFO GetTOOLINFO(Control ctl)
 {
     NativeMethods.TOOLINFO toolinfo = new NativeMethods.TOOLINFO();
     toolinfo.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO));
     toolinfo.hwnd = this.Handle;
     toolinfo.uFlags = NativeMethods.TTF_TRANSPARENT | NativeMethods.TTF_SUBCLASS | NativeMethods.TTF_IDISHWND;
     toolinfo.uId = ctl.Handle;
     toolinfo.lpszText = NativeMethods.LPSTR_TEXTCALLBACKW;
     return toolinfo;
 }