News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Setfocus again

Started by clamicun, January 17, 2015, 05:19:20 AM

Previous topic - Next topic

clamicun

.data
ft_mask TCHAR '*.',0
IDC_EDIT = 100

.code
"
"
CallModalDialog hInstance,main_hWnd,dlg_FileTypes,0

dlg_FileTypes proc hWin:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD
.if uMsg == WM_INITDIALOG
                 
INVOKE SetDlgItemText,hWin,IDC_EDIT1,offset ft_mask
INVOKE SetFocus,rv(GetDlgItem,hWin,IDC_EDIT1)
"
"
--------------------------------------------------
Yes, the focus is on the editfield, but at the beginning.
Is it possible to get the focus after *.    ???

Thank you

jj2007


clamicun

JJ, good evening and many thanks

Invoke SendMessage,rv(GetDlgItem,hWin,IDC_EDIT1),EM_SETSEL,2,2