LibUIDK Documentation
ContentsIndexHome
PreviousUpNext
CSkinListCtrl::GetTextFont Method
C++
void GetTextFont(CFont ** ppFontN, CFont ** ppFontD);

得到自绘List控件的文本字体.

Parameters 
Description 
CFont ** ppFontN 
[out] 指向CFont类型的指针, 用来存储正常状态的字体. 如果不需要返回它, 可以设置为NULL. 
CFont ** ppFontD 
[out] 指向CFont类型的指针, 用来存储Disabled状态的字体, 如果不需要返回它, 可以设置为NULL. 

CSkinListCtrl控件支持正常状态和Disabled两种状态的字体设置. 本函数是用来代替CListCtrl::GetFont的. LibUIDK使用CSkinListCtrl::SetTextFont而非CListCtrl::SetFont来设置字体, 因为后者不支持Disabled状态的字体设置.