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. CEdit associtted with spin control

CEdit associtted with spin control

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

    How to set the max and min of CEdit associtted with spin control

    N _ G 3 Replies Last reply
    0
    • A anilksingh

      How to set the max and min of CEdit associtted with spin control

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      anilksingh wrote:

      How to set the max and min of CEdit associtted with spin control

      Use SetRange or SetRange32 methods of the spin control.


      Nibu thomas A Developer Programming tips[^]  My site[^]

      1 Reply Last reply
      0
      • A anilksingh

        How to set the max and min of CEdit associtted with spin control

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        See here http://www.codeguru.com/cpp/controls/editctrl/article.php/c511/ Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        1 Reply Last reply
        0
        • A anilksingh

          How to set the max and min of CEdit associtted with spin control

          G Offline
          G Offline
          G Haranadh
          wrote on last edited by
          #4

          For example do like this

          m\_feEditValue.SetRange(6,23);
          m\_pSpin =	(CSpinButtonCtrl\*) GetDlgItem(IDC\_SPIN1);
          m\_pSpin->SetBuddy(&m\_feEditValue);
          m\_pSpin->SetRange(6,23);
          

          And also you should handle onvscroll event for spin, and onchange edit event for edit control. handle both events then you can do this. Hey do you know this is my hundredth post. :rose: Nice talking to you. :-O
          If you judge people, you have no time to love them. -- Mother Teresa

          T 1 Reply Last reply
          0
          • G G Haranadh

            For example do like this

            m\_feEditValue.SetRange(6,23);
            m\_pSpin =	(CSpinButtonCtrl\*) GetDlgItem(IDC\_SPIN1);
            m\_pSpin->SetBuddy(&m\_feEditValue);
            m\_pSpin->SetRange(6,23);
            

            And also you should handle onvscroll event for spin, and onchange edit event for edit control. handle both events then you can do this. Hey do you know this is my hundredth post. :rose: Nice talking to you. :-O
            If you judge people, you have no time to love them. -- Mother Teresa

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            G Haranadh wrote:

            Hey do you know this is my hundredth post. :rose:

            Good :)

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

            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