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

    CCheckListBox!!!

    Hi All,
    Is there any way to create "X" mark instead of the default tick mark (_/) mark that gets created with the CCheckListBox Control.

    Thanks in Advance....
    Vittal


  2. #2
    Join Date
    Jun 1999
    Posts
    319

    Re: CCheckListBox!!!

    Try overriden the DrawItem function. See in the MFC source for this (WINCTRL3.cpp).
    let me know if it works, or if you need more help
    Best regards,
    Faby


  3. #3
    Join Date
    Apr 1999
    Posts
    24

    Re: CCheckListBox!!!

    Actually it is the PreDrawItem function you must override. That function takes care of drawing the checkmark in front of the line of text.


  4. #4
    Join Date
    Jun 1999
    Posts
    319

    Re: CCheckListBox!!!

    Right. Sorry I didn't verify.


  5. #5
    Join Date
    Apr 1999
    Posts
    31

    Re: CCheckListBox!!!

    Hi Fabi and Daniel,
    Thanks for the help...

    I will try implementing it.

    -Vittal




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