[原創]

void __fastcall TLCDSimForm::cbImageListDrawItem(TWinControl *Control,
int Index, TRect &Rect, TOwnerDrawState State)
{
AnsiString str = cbImageList->Items->Strings[Index];
cbImageList->Canvas->FillRect(Rect);
DrawText(cbImageList->Canvas->Handle, str.c_str(),
str.Length(), &Rect, DT_CENTER);
}

文章標籤
全站熱搜
創作者介紹
創作者 Nola 的頭像
Nola

學習就是生活

Nola 發表在 痞客邦 留言(0) 人氣(911)