Problem with edit control not having hscroll

Im just learning WINAPI lately and i was making a notepad and wanted to make function that would turn off the horizontal scroll so i simply took out the WS_HSCROLL when creating the window and well i got rid of the horizontal scroll but it didn't stop the text from going behind the visible to user edit area... how do i fix this?
I assume you created an edit control as a child of your main parent ( top level ) window. If so, the only way the text in the edit control will scroll horizontally is if, when created, you included the ES_AUTOHSCROLL style. If you remove that, it won't scroll anymore.
Thanks man I've missed out that!
Topic archived. No new replies allowed.