void CMyTab::OnPaint()
{
CPaintDC dcPaint(this); // device context for painting
// TODO: Add your message handler code here
CRect rcPnt,rcItem,rcActive,rectCli;
//Copy update rect to rcPnt
rcPnt = dcPaint.m_ps.rcPaint;
dcPaint.FillSolidRect(&rcPnt,RGB(224,227,234));//画Item的背景
//Active item should be wider then other items.
//So here we calculate and apply the width difference.
GetItemRect(m_nActiveItem,&rcActive);
rcActive.top -= 2;