[原創]
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);
}
文章標籤
全站熱搜
留言列表