thx
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Write - in the new listbox class:
BOOL CMyListBox::OnEraseBkgnd(CDC* pDC)
{
return TRUE;
}
void CMyListBox::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
CDC* pDC = CDC::FromHandle(lpDrawItemStruct->hDC);
pDC->SetBkMode(TRANSPARENT);
// Add your own drawing of each line here
}
void CMyListBox::OnPaint()
{
CPaintDC dc(this); // device context for painting
dc.SetBkMode(TRANSPARENT);
}
Create a control variable for your listbox, using this class instead of the
normal CListBox.
As you can see, some more coding is necessary (the drawing of the individual
lines in the listbox. Happy drilling!
Johan Rosengren
Responsable Informatique
PACTA S.A.
<the_dent...@my-deja.com> a écrit dans le message :
7qg2d2$6do$1...@nnrp1.deja.com...