Click to See Complete Forum and Search --> : creating CCheckListbox


the repairguy
April 4th, 1999, 08:23 AM
Hello to all
I'm starting with MFC programming and am looking forward to porting a small java App to c++. To do this I need a checkListBox but am unable to create and draw one. Any help will be greatly appreciated!

Thanx

vittal
April 6th, 1999, 06:25 AM
Hi RepairGuy,
What do you Repair??


Add a list box using dialog editor, Add a private member variable of type control. Change CListBox to CCheckListBox (All occurances, anyway only one will be there).

Dont forget to make the OwnerDraw property of the list box as true.
Just tell me if it worked or not

Bye
Vittal

the repairguy
April 6th, 1999, 10:46 AM
I don't repair much these days :)
What you said works but I found out a little before i received your message (maybe i should think a little before posting...)
You must also use a fixed owner draw it seems for it to work, but I don't have a clue why
Anyway thanks for the help

Aparna
April 7th, 1999, 07:35 AM
Hi Vittal,
I too faced this problem. Now your solution works. Thanks......

Regards,
Aparna