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); }
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; }