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

Thread: CBitmapButton

  1. #1
    Join Date
    Jul 2002
    Posts
    788

    CBitmapButton

    I am using bitmapbutton on a touch screen.
    Created two bitmaps for, raised and sunken for Up and Down.

    The problem is the sunken effect sometimes is not visible. So when the use
    touch the button, the button most of the time doesn;t apper as sunken!

    I added the same sunken buttton as "focus", this time the sunken effect is visible,
    but then the button remain as focused after touched!

    Any idea how to tackle this???

  2. #2
    Join Date
    Apr 2004
    Posts
    76
    Hi mce,

    Have you tried calling CBitmapButton::Invalidate() on the BN_* handlers. I had to use this technique on a CEdit when changing between display modes.

    Jeff

  3. #3
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917
    How do you assign bitmaps (code)?
    Why not to use regular button with BS_BITMAP style and simply call SetBitmap member of the CButton class?
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  4. #4
    Join Date
    Jul 2002
    Posts
    788
    SetBitmap doesn't work on embedded VC++.....


    Tried the invalidate as well.. not much difference..

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