关于tab 控件的问题
在程序中动态添加了一些标签,怎样获得某一个标签的文本?????????
回复 2楼 yuccn
多谢,已经解决。
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);