Introduction
Well there is nothing much to say about this. This is a simple better looking multi-line tooltip control.
#pragma once
class CToolTipCtrlEx : public CToolTipCtrl
{
DECLARE_DYNAMIC(CToolTipCtrlEx)
enum Orientations
{
NW=1,
NE,
SW,
SE,
};
public:
CToolTipCtrlEx();
virtual ~CToolTipCtrlEx();
protected:
DECLARE_MESSAGE_MAP()
virtual void PreSubclassWindow();
private:
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnNcPaint();
public:
COLORREF m_bkColor;
COLORREF m_leftColor;
COLORREF m_frameColor;
COLORREF m_textColor;
COLORREF m_arrowColor;
};
Just use it like a normal ToolTipCtrl
control.
In the end
This is a tooltip inspired by the Delphi Flat Hint and the arrows are using the port of the Delphi drawing algorithm. This is free to use, modify it but you can't claim it. Any feedback and rating is most welcome.