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?
invoke SetFocus,eax
invoke SendMessage,eax,EM_SETSEL,0,-1
it only set focus in IDC_CODE, but doesn't select the text!
Why?
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
invoke GetDlgItem,hWnd,IDC_CODE
push eax
invoke SetFocus,eax
pop eax
invoke SendMessage,eax,EM_SETSEL,0,-1
bingo,thanks!