hi, i created a normal window (with CreateWindowEx) and there is a text box in it. now i read some text from a file and put it into that text box. but the text is selected on startup of the program. why? tnx. bye
Posted on 2001-03-19 11:39:00 by [SaFc0n]
because the last control is focused... try to set the focus on some other item at startup with these api's: GetDlgItem - to get the item handle SetFocus - to set new focus
Posted on 2001-03-19 11:43:00 by drcmda