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
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