关于tab 控件的问题
在程序中动态添加了一些标签,怎样获得某一个标签的文本?????????
程序代码:
TCITEM tcItem;
CString pszString;
// Get text for the tab item.
GetDlgItemText(IDC_TABBOTTOM, pszString);
// Get the current tab item text.
char buffer[256] = {0};
tcItem.pszText = buffer;
tcItem.cchTextMax = 256;
tcItem.mask = TCIF_TEXT;
m_tab2.GetItem(0, &tcItem);