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
helptutorial
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.
  • A Offline
    A Offline
    AbhiHcl
    wrote on last edited by
    #1

    How to show the time value in edit control which is attached with spin control. I also need increase or decrease the time value with the help of Spin control.. Please help me.. Thanks..

    L C 2 Replies Last reply
    0
    • A AbhiHcl

      How to show the time value in edit control which is attached with spin control. I also need increase or decrease the time value with the help of Spin control.. Please help me.. Thanks..

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Use one of the time[^] functions to obtain a string with the current time which you can display in the edit box. Use the spinner controls to adjust the values (based on selected characters) up or down and adjust your time value as necessary.

      It's time for a new signature.

      A 1 Reply Last reply
      0
      • L Lost User

        Use one of the time[^] functions to obtain a string with the current time which you can display in the edit box. Use the spinner controls to adjust the values (based on selected characters) up or down and adjust your time value as necessary.

        It's time for a new signature.

        A Offline
        A Offline
        AbhiHcl
        wrote on last edited by
        #3

        can u please provide me some sample code as I m very new in MFC.. Thanks..

        L 1 Reply Last reply
        0
        • A AbhiHcl

          can u please provide me some sample code as I m very new in MFC.. Thanks..

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          The link I posted for the time functions should explain all you need to know about obtaining time values as strings. Take a look also at the CSpinButtonCtrl[^], it has links to sample code that should help. You will find similar pages for all the other MFC classes.

          It's time for a new signature.

          1 Reply Last reply
          0
          • A AbhiHcl

            How to show the time value in edit control which is attached with spin control. I also need increase or decrease the time value with the help of Spin control.. Please help me.. Thanks..

            C Offline
            C Offline
            chaau
            wrote on last edited by
            #5

            Why don't use CDateTimeCtrl, which encapsulates the functionality of a date and time picker control. If its set to DTS_TIMEFORMAT it has a spin control and displays formatted time.

            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