|
정말 초보적인 질문입니다.
New Project를 해서 Form에 ListView에 아이템을 하나를 추가 해놓고,
OwnerDraw를 true로 하면 아래의 OnDrawItem이벤트가 일어나야 하잖습니까?
저도 그렇게 알고 있는데..이벤트가 일어나지 않네요..
다른 옵션을 정해 주어야 하는 것 있습니까?
//------------------------------------------------------------------
void __fastcall TForm1::ListView1DrawItem(TCustomListView *Sender,
TListItem *Item, TRect &Rect, TOwnerDrawState State)
{
ListView1->Canvas->Font->Color = clRed;
ListView1->Canvas->Brush->Color = clWhite;
ListView1->Canvas->FillRect(Rect);
}
//------------------------------------------------------------------
단순히 폼위에 ListView하나와 ImageList 하나만 올러 놓고 Test 하는데 않돼네요.
감사합니다. 도와 주세요.
|