Please give me a sample code in MFC VC++ of CMovingButton move to left and move to right.

Search www.codeproject.com -- they have thousands of free MFC classes. If you write MFC then you need to bookmark that site.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.