自绘控件.GetSafeHwnd();//获取失败咋办
//自绘树控件
m_pTreeCtrl.Create(WS_CHILD|WS_VISIBLE|TVS_HASBUTTONS|TVS_HASLINES|TVS_LINESATROOT|TVS_TRACKSELECT|TVS_EDITLABELS,CRect(0,0,800,800),this,TreeID);
HWND hWnd = m_pTreeCtrl.GetSafeHwnd();
RECT rect;
m_pTreeCtrl.GetClientRect(&rect);
ScreenToClient(&rect);
HDC hDC = ::GetDC(hWnd);
GradientFillRect(hDC,rect,0xFDE7C5,0xffffff,true );