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. CBitmapButton and tap-n-hold

CBitmapButton and tap-n-hold

Scheduled Pinned Locked Moved Mobile
question
2 Posts 1 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.
  • Z Offline
    Z Offline
    zoid
    wrote on last edited by
    #1

    Hi, I could not find any info on this anywhere some maybe someone here has an idea? When I create a dialog with a button (CButton) and the stylus is held down on the button for an extended period the the red dots from tap and hold do not appear. This is good.:) When I create a CBitmapButton and the stylus is held down the red dots do appear. This is bad.:( How do I disable tap-n-hold for owner draw (CBitmapButton) buttons ? Thanks Tom.

    Z 1 Reply Last reply
    0
    • Z zoid

      Hi, I could not find any info on this anywhere some maybe someone here has an idea? When I create a dialog with a button (CButton) and the stylus is held down on the button for an extended period the the red dots from tap and hold do not appear. This is good.:) When I create a CBitmapButton and the stylus is held down the red dots do appear. This is bad.:( How do I disable tap-n-hold for owner draw (CBitmapButton) buttons ? Thanks Tom.

      Z Offline
      Z Offline
      zoid
      wrote on last edited by
      #2

      Never mind - Here is the solution Derive your own class from CBitmapButton and override the OnLButtonDown function. void CMyBitmapButton::OnLButtonDown(UINT nFlags, CPoint point) { Default(); }

      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