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

Animation control

Scheduled Pinned Locked Moved C / C++ / MFC
12 Posts 2 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 ashish dogra

    hello i want to know that as animation control is used to play clip of .avi type. now i use folloeing code in a button to play a clip m_ani.Open(_T("Findfile.avi")); m_ani.Play(0,-1,-1); but clip is not playing .now i want to know that (_T("Findfile.avi") how this will pick clip as .avi clip is stored at c:\MSDN\samples\vid98\content\mmedia now plz tell me. thanks Ashish Dogra MCA Noida

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

    whats m_ani?_**


    **_

    whitesky


    A 1 Reply Last reply
    0
    • H Hamid Taebi

      whats m_ani?_**


      **_

      whitesky


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

      m_ani is member variable of animation control of type CAnimateCtrl Ashish Dogra MCA Noida

      H 1 Reply Last reply
      0
      • A ashish dogra

        m_ani is member variable of animation control of type CAnimateCtrl Ashish Dogra MCA Noida

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

        Did you saw example CAnimateCtrl in msdn Here[^] and Here[^]_**


        **_

        whitesky


        A 1 Reply Last reply
        0
        • H Hamid Taebi

          Did you saw example CAnimateCtrl in msdn Here[^] and Here[^]_**


          **_

          whitesky


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

          this code does not help me as i want to know only that how avi file is loaded see my previous post thanks Ashish Dogra MCA Noida

          H 1 Reply Last reply
          0
          • A ashish dogra

            this code does not help me as i want to know only that how avi file is loaded see my previous post thanks Ashish Dogra MCA Noida

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

            What your problem msdn example is good use open with filename for open an avi file and play(0 for begin frame,-1==last frame,-1==replay) for play_**


            **_

            whitesky


            A 1 Reply Last reply
            0
            • H Hamid Taebi

              What your problem msdn example is good use open with filename for open an avi file and play(0 for begin frame,-1==last frame,-1==replay) for play_**


              **_

              whitesky


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

              sir yhaknks for your reply but i try this one and no clip is shown on anmated control Ashish Dogra MCA Noida

              H 1 Reply Last reply
              0
              • A ashish dogra

                sir yhaknks for your reply but i try this one and no clip is shown on anmated control Ashish Dogra MCA Noida

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

                Are you sure your file is avi_**


                **_

                whitesky


                A 1 Reply Last reply
                0
                • H Hamid Taebi

                  Are you sure your file is avi_**


                  **_

                  whitesky


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

                  yes sir as i search them as .avi and then i use one of the name in my code Ashish Dogra MCA Noida

                  H 1 Reply Last reply
                  0
                  • A ashish dogra

                    yes sir as i search them as .avi and then i use one of the name in my code Ashish Dogra MCA Noida

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

                    I dont know your code but i tested this code for you and it worked test this code

                    CAnimateCtrl m_Ctrl;
                    m_Ctrl.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1); m_Ctrl.Open("C:\\WINDOWS\\clock.avi"); m_Ctrl.Play(0,-1,-1);

                    _**


                    **_

                    whitesky


                    A 1 Reply Last reply
                    0
                    • H Hamid Taebi

                      I dont know your code but i tested this code for you and it worked test this code

                      CAnimateCtrl m_Ctrl;
                      m_Ctrl.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1); m_Ctrl.Open("C:\\WINDOWS\\clock.avi"); m_Ctrl.Play(0,-1,-1);

                      _**


                      **_

                      whitesky


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

                      thanks sir it works thanks a lot but sir can we resize this Ashish Dogra MCA Noida

                      H 1 Reply Last reply
                      0
                      • A ashish dogra

                        thanks sir it works thanks a lot but sir can we resize this Ashish Dogra MCA Noida

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

                        You can use form MoveWindow with new size_**


                        **_

                        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