CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Checkboxes

  1. #1
    Guest

    Checkboxes

    Does anyone know how to put a different image in a check box when it is checked other than a tick?

    I would like to have 1's and 0's instead.

    Please email replies to [email protected]


  2. #2
    Join Date
    May 1999
    Posts
    3

    Re: Checkboxes

    1) Create a CButton derived class.
    2) Create a member variable to store the state.
    3) Use the OnPaint member to draw the bitmap.

    I think you will have to create regular buttons
    (not checkboxes) with the Ownerdrawn feature
    enabled,in the resource editor if you want to use it...

    Anywho..that's what I'd prolly do.

    If you have trouble figuring out the code, e-mail me.

    HTH!
    Bye!


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