Re: How to stack ActiveX controls in ListBox?
You can custom-paint each item in the listbox (including
the listbox portion of a combobox). I'd imagine you
would paint your control in an offscreen DC via its
IViewObject::Draw method, then bitblt that to the
actual listbox during custom painting. Then don't forget
the hit-testing, which I'm not really sure how you can
transfer back to the control (perhaps with a custom
interface exposed by your control?). Again I'd advise
you to make the combobox (or listbox or listview) into
an ActiveX Control, not the individual items...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Siegfried Heintze" <siegfried@heintze.com> wrote in message
news:%238rV6BhKHHA.1816@TK2MSFTNGP06.phx.gbl...
I want to write an ActiveX control (using ATL/C++, of course) that I can
put in a listbox. Actually, I don't know if I want a listbox, combobox, or
listctrl.
Initially, I thought of of listctrl but then I wanted each row to be a
seperate instance of this ActiveX control. The listctrl is more effective
if each cell in your matrix is an activeX control -- do you agree?
I want the user to see a display similar to a multi-column list control
and be able to have the user double click on a row and have the ActiveX
control repaint itself with 8 edit boxes and a couple of check boxes. Each
row will display a start time (hours, min, sec, frame), stop time, delta
time and several booleans.
Is there an example of this anywhere?
Thanks,
Siegfried