// JP opened flex table

Click to See Complete Forum and Search --> : A bug of CTabView(2)


Keith Chiou
June 26th, 1998, 08:59 AM
void CViewTabCtrl::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)

{

int nSel = lpDrawItemStruct->itemID;

ASSERT(nSel > -1);

ASSERT(nSel < GetItemCount());


TC_ITEM item;

char text[255];


// BUG : The author forgot to set 'cchTextMax'. I found this bug when

// executing the 'release' version.

item.cchTextMax = 200;

item.pszText = text;

item.mask = TCIF_TEXT;

//JP added flex table