invoke GetDlgItem,hWnd,IDC_CODE
invoke SetFocus,eax
invoke SendMessage,eax,EM_SETSEL,0,-1

it only set focus in IDC_CODE, but doesn't select the text!

Why?
Posted on 2004-08-04 21:25:28 by crquan
SetFocus returns the handle of the window that previously had the focus in eax...

invoke GetDlgItem,hWnd,IDC_CODE
push eax
invoke SetFocus,eax
pop eax
invoke SendMessage,eax,EM_SETSEL,0,-1
Posted on 2004-08-04 21:28:54 by donkey
bingo,thanks!
Posted on 2004-08-04 21:32:31 by crquan