[原創]

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);
}

arrow
arrow
    文章標籤
    BCB ComboBox
    全站熱搜

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