Thursday, April 10, 2008

How to disable tabcontrol?

How to disable tab control?

Draw text over tabcontrol with grey shade…

CDC *pDC;
pDC=this->GetDC();

pDC->SelectObject(GetFont());
pDC->SetBkMode(TRANSPARENT);
if (FALSE==bEnable)
{
pDC->SetTextColor(GetSysColor(COLOR_GRAYTEXT));
rect.top -= ::GetSystemMetrics(SM_CYEDGE);
pDC->DrawText(tcItem.pszText, rect, SINGLELINEDT_VCENTERDT_CENTER);
}
ReleaseDC(pDC);

No comments:

Post a Comment