Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Using CbitmapButton Class

Using CbitmapButton Class

Scheduled Pinned Locked Moved Mobile
questiongraphicshelpannouncement
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    illidan99
    wrote on last edited by
    #1

    Hi, I'm Javier. I'm developing a pocketPC 2003 application. I need to use Bitmap buttons in a dialog window. It's works, but the problem is the button is "down" and "up" quickly when I push and hold, and the event happens. I need that button doesn't released(remain down) until I release the stylus and then must happen the "button click event" and "bitmap button" up. How can I do this? Must I create a derivate Cbitmapbutton class and manage messages? Have Anyone any class about this? I have seen the button articles in this web and I have found only one for PocketPC and it uses icons. Any suggestion? Thank you.

    J 1 Reply Last reply
    0
    • I illidan99

      Hi, I'm Javier. I'm developing a pocketPC 2003 application. I need to use Bitmap buttons in a dialog window. It's works, but the problem is the button is "down" and "up" quickly when I push and hold, and the event happens. I need that button doesn't released(remain down) until I release the stylus and then must happen the "button click event" and "bitmap button" up. How can I do this? Must I create a derivate Cbitmapbutton class and manage messages? Have Anyone any class about this? I have seen the button articles in this web and I have found only one for PocketPC and it uses icons. Any suggestion? Thank you.

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      This is a very old bug in MFC. The workaround is actually quite simple: QA: Why doesn't my CButton work right?[^] Although the article is for a CButton, the principles are the same. Regards, João Paulo Figueira Embedded MVP

      I 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        This is a very old bug in MFC. The workaround is actually quite simple: QA: Why doesn't my CButton work right?[^] Although the article is for a CButton, the principles are the same. Regards, João Paulo Figueira Embedded MVP

        I Offline
        I Offline
        illidan99
        wrote on last edited by
        #3

        Ok,I have tried and it works!! Thanks!:-D. (I'm developing for pocket PC since a few weeks so I dont know this bug). Another thing: When I hold the stylus appears "the moving circle". How I could program to move this feature? Then "the new Class Button" works exactly like a "Normal button". Thank you.

        J 1 Reply Last reply
        0
        • I illidan99

          Ok,I have tried and it works!! Thanks!:-D. (I'm developing for pocket PC since a few weeks so I dont know this bug). Another thing: When I hold the stylus appears "the moving circle". How I could program to move this feature? Then "the new Class Button" works exactly like a "Normal button". Thank you.

          J Offline
          J Offline
          Joao Paulo Figueira
          wrote on last edited by
          #4

          Just call Default() on your button's OnLButtonDown handler - do not call the base class. Regards, João Paulo Figueira Embedded MVP

          I 1 Reply Last reply
          0
          • J Joao Paulo Figueira

            Just call Default() on your button's OnLButtonDown handler - do not call the base class. Regards, João Paulo Figueira Embedded MVP

            I Offline
            I Offline
            illidan99
            wrote on last edited by
            #5

            Thanks, João Paulo

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups