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. Spin control

Spin control

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • U Offline
    U Offline
    User 3037427
    wrote on last edited by
    #1

    Hi all, I have some doubt regarding the spin button control. In Spin button control, how can i know which button (up/dowm arrow button) is clicked? Thanx in advance.

    R N 2 Replies Last reply
    0
    • U User 3037427

      Hi all, I have some doubt regarding the spin button control. In Spin button control, how can i know which button (up/dowm arrow button) is clicked? Thanx in advance.

      R Offline
      R Offline
      Ram Murali
      wrote on last edited by
      #2

      void CTest::OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult) { NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR; // TODO: Add your control notification handler code here if(pNMUpDown->iDelta <0) MessageBox("up button"); else if(pNMUpDown->iDelta>0) MessageBox("down button"); *pResult = 0; } Regards, Ram

      U 1 Reply Last reply
      0
      • R Ram Murali

        void CTest::OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult) { NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR; // TODO: Add your control notification handler code here if(pNMUpDown->iDelta <0) MessageBox("up button"); else if(pNMUpDown->iDelta>0) MessageBox("down button"); *pResult = 0; } Regards, Ram

        U Offline
        U Offline
        User 3037427
        wrote on last edited by
        #3

        Thanx for ur reply:)

        1 Reply Last reply
        0
        • U User 3037427

          Hi all, I have some doubt regarding the spin button control. In Spin button control, how can i know which button (up/dowm arrow button) is clicked? Thanx in advance.

          N Offline
          N Offline
          Nishad S
          wrote on last edited by
          #4

          You can use the scroll messages for this. OnVScroll or OnHScroll. - NS -

          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