I could not grasp you question very well
But May be the Below link can help you.
http://www.programmersheaven.com/mb/...-mfc/?S=B20000