Perhaps I recall wrong about the ClassWizard.

I DO, however, have working code before me:

In the header (.h), I have:

// Implementation
CCheckListBox m_ckUserList;

In the source (.cpp) I have:

BOOL CSelUsersPg::OnInitDialog()

m_ckUserList.SubclassDlgItem(IDC_USERLIST, this);


Free software - Baxter Codeworks

"ME" wrote in message
news:200307181259.h6ICx2lL029504@mail4.andrew.cmu. edu...
> I tried what you said. There's two comboboxes in the Add Member Variable

> called Category and Variable Type. No matter which Category I try, I

don't get
> CCheckListBox as a possible variable type. Is there a way to add it to

> list of variable types somehow.
> By the way in MSDN, what it says for this is:
> CheckListBox is only for owner-drawn controls because the list contains

> than just text strings ...
> To create your own checklist box, you must derive your own class from
> CCheckListBox. To derive your own class, write a constructor for the

> class then call create.
> Is there an example of this because I don't know where to put this stuff
> and what it would look like. And it doesn't seem like I'll be able to do

> from the wizard but I was hoping I could.
> You wrote:
> Put a Listbox on your dialog, then in the ClassWizard, add a Member

> of type CCheckListBox to your listbox. IIRC, the properties on the
> listbox have to be Owner-Draw: Fixed, and Has Strings (best to check with
> MSDN on this)
> Alternately, you have to Subclass the listbox yourself in the

> "Me" wrote in message
> news:200307161005.h6GA53lL013181@mail4.andrew.cmu. edu...
> > Hi, I'm hoping that someone here can help.
> >
> > I'm trying to create a control in a dialog box which I want to
> > be a list box with several check boxes for every entry in the list.
> >
> > Now I can create check boxes and list boxes by clicking on the

> > button in Visual Studio's Control Box menu but it doesn't have a

> checklistbox
> > control in the menu. I've tried a lot of things but it seems rather odd

> to
> > me that there'd be a class, namely CCheckListBox, able to support a

> control
> > but no way to actually put the control in a dialog box.
> >
> > Does anyone have any idea how to do this?