Re: Listbox with buttons



A .NET version of DrawFrameControl is available in the ControlPaint class
Can't help you with the other two questions though

/claes

<kiran.inbng@xxxxxxxxx> wrote in message
news:1156476045.141619.84900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,

Iam trying to create a listbox with buttons/tree control as items in a
listbox(ownerdrawvariable) and iam having some problems.Below are my
questions,

1.Is there a equivavalent of DrawFrameControl(a win32 api) in C#.If not
how can button be created in the item rect
2.How to a create tree control or any other control inside a listbox
3.What will be the state of the item when drawitem handler is called
for the first time.I do not want to create the controls inside the
listbox on every call to drawitem.(iam looking for something similar to
ODA_DRAWENTIRE itemaction bit of DRAWITEMSTRUCT -- win32)

Thanks in advance,
kiran



.