System.Windows.Forms.ThemeWin32Classic.DrawToolTip C# (CSharp) Method

DrawToolTip() public method

public DrawToolTip ( Graphics dc, Rectangle clip_rectangle, ToolTip control ) : void
dc System.Drawing.Graphics
clip_rectangle System.Drawing.Rectangle
control ToolTip
return void
		public override void DrawToolTip(Graphics dc, Rectangle clip_rectangle, ToolTip.ToolTipWindow control)
		{
			ToolTipDrawBackground (dc, clip_rectangle, control);

			TextFormatFlags flags = TextFormatFlags.HidePrefix;

			Color foreground = control.ForeColor;
			if (control.title.Length > 0) {
				Font bold_font = new Font (control.Font, control.Font.Style | FontStyle.Bold);
				TextRenderer.DrawTextInternal (dc, control.title, bold_font, control.title_rect,
						foreground, flags, false);
				bold_font.Dispose ();
			}

			if (control.icon != null)
				dc.DrawIcon (control.icon, control.icon_rect);

			TextRenderer.DrawTextInternal (dc, control.Text, control.Font, control.text_rect, foreground, flags, false);
		}
ThemeWin32Classic