I try and remove the ES_MULTILINE and ES_WANTRETURN styles from my edit control contained in a dialog box. I do this using ModifyStyle in OnInitDialog but it doesn't remove the styles.

Whats going wrong?