|
大佬么,求助,现在在页面创建的LISVIEW空间,想实现在一个单元格小同时显示两种颜色的字体!!!
没有对应的API,然后看对应的设置字体颜色API源码搞不懂啊 【LISTVIEW_SetItemTextColor】。
求大神们帮解答
void LISTVIEW_SetItemTextColor(LISTVIEW_Handle hObj, unsigned Column, unsigned Row, unsigned int Index, GUI_COLOR Color) {
LISTVIEW_Obj * pObj;
LISTVIEW_CELL_INFO * pCellInfo;
if (hObj) {
WM_LOCK();
pCellInfo = _GetpCellInfo(hObj, Column, Row, Index);
if (pCellInfo) {
pObj = LISTVIEW_LOCK_H(hObj);
pCellInfo->aTextColor[Index] = Color;
pCellInfo->Flags |= LISTVIEW_CELL_INFO_COLORS;
LISTVIEW__InvalidateRow(hObj, pObj, Row);
GUI_UNLOCK_H(pObj);
}
if (pCellInfo) {
GUI_UNLOCK_H(pCellInfo);
}
WM_UNLOCK();
}
}
|
|