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 not attached with edit control

spin control not attached with edit control

Scheduled Pinned Locked Moved C / C++ / MFC
help
8 Posts 4 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
    ashish dogra
    wrote on last edited by
    #1

    many function in which CWnd pointer is used and i check in application the CWnd pointer is *pParent what when i use this one it gives error as in the m_spin.SetBuddy(CWnd *pWndBuddy);to attach a edit control with spin control Ashish Dogra MCA Noida

    _ 1 Reply Last reply
    0
    • A ashish dogra

      many function in which CWnd pointer is used and i check in application the CWnd pointer is *pParent what when i use this one it gives error as in the m_spin.SetBuddy(CWnd *pWndBuddy);to attach a edit control with spin control Ashish Dogra MCA Noida

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

      Go to the dialog editor and open the spin control property window . There you can set the property for Alignment - Left and AutoBuddy to TRUE Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      A 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        Go to the dialog editor and open the spin control property window . There you can set the property for Alignment - Left and AutoBuddy to TRUE Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        A Offline
        A Offline
        ashish dogra
        wrote on last edited by
        #3

        when i set these properties application does not run can u tell me why thanks Ashish Dogra MCA Noida

        H D 2 Replies Last reply
        0
        • A ashish dogra

          when i set these properties application does not run can u tell me why thanks Ashish Dogra MCA Noida

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Seem_Spin1.SetBuddy(GetDlgItem(IDC_EDIT1));

          and maybe you need to this function (if this function is next your question if not maybe it is some helpful to you )
          void CAnswer::OnDeltaposSpin1(NMHDR *pNMHDR, LRESULT *pResult)
          {
          LPNMUPDOWN pNMUpDown = reinterpret_cast(pNMHDR);

          SetDlgItemInt(IDC\_EDIT1,m\_Spin1.GetPos());
          
          \*pResult = 0;
          

          }

          _**


          **_

          whitesky


          1 Reply Last reply
          0
          • A ashish dogra

            when i set these properties application does not run can u tell me why thanks Ashish Dogra MCA Noida

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            ashish dogra wrote:

            can u tell me why

            Not without more information. When you say, "does not run," what exactly does that imply? Do you get a runtime error, an exception, an assertion, some incorrect value, etc? Have you stepped through the code using the debugger to see, or at least narrow down, what the problem is? BTW, didn't you just ask this same question here a mere 2 hours ago?


            "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

            "Judge not by the eye but by the heart." - Native American Proverb

            H 1 Reply Last reply
            0
            • D David Crow

              ashish dogra wrote:

              can u tell me why

              Not without more information. When you say, "does not run," what exactly does that imply? Do you get a runtime error, an exception, an assertion, some incorrect value, etc? Have you stepped through the code using the debugger to see, or at least narrow down, what the problem is? BTW, didn't you just ask this same question here a mere 2 hours ago?


              "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

              "Judge not by the eye but by the heart." - Native American Proverb

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              yes david when i answer to this question i see he asked this question already_**


              **_

              whitesky


              D 1 Reply Last reply
              0
              • H Hamid Taebi

                yes david when i answer to this question i see he asked this question already_**


                **_

                whitesky


                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                So, what's your point? :rolleyes:


                "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                "Judge not by the eye but by the heart." - Native American Proverb

                H 1 Reply Last reply
                0
                • D David Crow

                  So, what's your point? :rolleyes:


                  "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                  "Judge not by the eye but by the heart." - Native American Proverb

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  I say and you say but again we say a same question again again,...,I can say please dont post a same question like a loop_**


                  **_

                  whitesky


                  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