Ejemplo n.º 1
0
 /// <summary>
 /// Creates and initializes a NativeMethods.TOOLINFO structure associate width the specified control
 /// </summary>
 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
 /// <summary>
 /// Creates and initializes a NativeMethods.TOOLINFO structure associate width the specified control
 /// </summary>
 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;
 }