CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    creating CCheckListbox

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    31

    Re: creating CCheckListbox

    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


  3. #3
    Join Date
    Apr 1999
    Posts
    3

    Re: creating CCheckListbox

    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


  4. #4
    Join Date
    Apr 1999
    Posts
    18

    Re: creating CCheckListbox

    Hi Vittal,
    I too faced this problem. Now your solution works. Thanks......

    Regards,
    Aparna


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured