Using CbitmapButton Class
-
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.
-
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.
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 -
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 MVPOk,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.
-
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.
Just call
Default()
on your button'sOnLButtonDown
handler - do not call the base class. Regards, João Paulo Figueira Embedded MVP -
Just call
Default()
on your button'sOnLButtonDown
handler - do not call the base class. Regards, João Paulo Figueira Embedded MVP