Thankyou for the reply, yes i have included both ES_AUTOHSCROLL and ES_AUTOVSCROLL but the actual problem is that when i check the 'WordWrap' from the format menu the 'HorizontalScrollbar' should be disabled only then the wordwrap would work . I have tried EnableScrollBar and been googling for long time but of no use . presently i am thinking of saving all the data from the edit control into a buffer and creating the edit control without 'ES_AUTOHSCROLL' . But still if any one knows of any other method pls let me know.

Any help would be appreciated
Thankingyou in advance