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. General Programming
  3. C / C++ / MFC
  4. BN_DOUBLECLICKED

BN_DOUBLECLICKED

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 Posts 3 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.
  • L Offline
    L Offline
    LeeeNN
    wrote on last edited by
    #1

    Hi, suprise! BN_DOUBLECLICKED wouldn't work! I want a button when single click do one thing, and when double clicked do another thing. but it never hit OnButtonDoubleclicked(). I search on Web, some one said, should change the button style to BS_NOTIFY, then I did check this style on property page. It made no difference. Any one can help? Thank you in advance.:confused:

    B O 2 Replies Last reply
    0
    • L LeeeNN

      Hi, suprise! BN_DOUBLECLICKED wouldn't work! I want a button when single click do one thing, and when double clicked do another thing. but it never hit OnButtonDoubleclicked(). I search on Web, some one said, should change the button style to BS_NOTIFY, then I did check this style on property page. It made no difference. Any one can help? Thank you in advance.:confused:

      B Offline
      B Offline
      Branislav
      wrote on last edited by
      #2

      http://www.codeproject.com/buttonctrl/doubleclick.asp[^]

      L 1 Reply Last reply
      0
      • B Branislav

        http://www.codeproject.com/buttonctrl/doubleclick.asp[^]

        L Offline
        L Offline
        LeeeNN
        wrote on last edited by
        #3

        Yes I went there before. I don't like the way to check double click. and I tried to check Notify option in property page, OnDoulbleClick() still could not be called. I still think there should be a better to do it. otherwise Wizzard should remove DoubleClicked notification from CButton. MSDN says BS_USERBUTTON can get BN_DOUBLECLICKED notification. how to create BS_USERBUTTON? :rolleyes:

        B 1 Reply Last reply
        0
        • L LeeeNN

          Yes I went there before. I don't like the way to check double click. and I tried to check Notify option in property page, OnDoulbleClick() still could not be called. I still think there should be a better to do it. otherwise Wizzard should remove DoubleClicked notification from CButton. MSDN says BS_USERBUTTON can get BN_DOUBLECLICKED notification. how to create BS_USERBUTTON? :rolleyes:

          B Offline
          B Offline
          Branislav
          wrote on last edited by
          #4

          Did you select Notify in Puch Button Properties - Styles dialog box?

          1 Reply Last reply
          0
          • L LeeeNN

            Hi, suprise! BN_DOUBLECLICKED wouldn't work! I want a button when single click do one thing, and when double clicked do another thing. but it never hit OnButtonDoubleclicked(). I search on Web, some one said, should change the button style to BS_NOTIFY, then I did check this style on property page. It made no difference. Any one can help? Thank you in advance.:confused:

            O Offline
            O Offline
            Owner drawn
            wrote on last edited by
            #5

            Try to subclass the button and handle the double click

            --Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord

            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