fix bug on setting doc title.and update bussiness logic.

set project property with static build not using shared mfc dll.