Johan K
May 31st, 1999, 05:25 AM
Hi!
I wonder if there are some one out there that could help me.
My problem is that I'm not able to use a CCheckListControl in a ATL Component.
I created a ATL Com Wizard project (dll).
In may project I have added 2 new ATL Objects one "Composite Control" and one "Dialog" (CWindow based).
I both of this controls I've added a ClistBox with the resource editor. For both of this CListBoxes the LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_EXTENDEDSEL styles is set. And in the both of the ATL Objects I call the SubclassWindow() for the CCheckListbox in the InitDialog function.
My problem is that the strings I add is not painted. And when a click in the CCheckListBox the application assert and the crash.
If some one could help me with this problem I would be grateful. (It would be nice to receive some code example)
Best Regards
/Joh@n
I wonder if there are some one out there that could help me.
My problem is that I'm not able to use a CCheckListControl in a ATL Component.
I created a ATL Com Wizard project (dll).
In may project I have added 2 new ATL Objects one "Composite Control" and one "Dialog" (CWindow based).
I both of this controls I've added a ClistBox with the resource editor. For both of this CListBoxes the LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_EXTENDEDSEL styles is set. And in the both of the ATL Objects I call the SubclassWindow() for the CCheckListbox in the InitDialog function.
My problem is that the strings I add is not painted. And when a click in the CCheckListBox the application assert and the crash.
If some one could help me with this problem I would be grateful. (It would be nice to receive some code example)
Best Regards
/Joh@n