次の内容のカスタム ツールチップを作成したい:
- 右上隅の画像
- 左側のテキスト
現在、ToolTip Objekt から継承するクラスがあります。
class CustomToolTip : ToolTip
{
public CustomToolTip()
{
this.OwnerDraw = true;
this.Popup += new PopupEventHandler(this.OnPopup);
this.Draw += new DrawToolTipEventHandler(this.OnDraw);
}
private void OnPopup(object sender, PopupEventArgs e)
{
e.ToolTipSize = new Size(200, 100);
}
private void OnDraw(object sender, DrawToolTipEventArgs e)
{
}
}
しかし、テキスト付きの画像を表示するために「OnDraw-Event」で何をすべきかわかりません。
ご協力ありがとうございました