Code:
SendMessage(hwndMainBox, EM_SETSEL,0,0);
should set the cursor to the very beginning of the edit control if that's what you are wanting to do.