CEdit类的setsel函数//第一个参数怎么还是-1?DWORD不是unsigned long...
void SetSel( DWORD dwSelection, BOOL bNoScroll = FALSE );
dwSelection
Specifies the starting position in the low-order word and the ending position in the high-order word. If the low-order word is zero and the high-order word is –1, all the text in the edit control is selected. If the low-order word is –1, any current selection is removed.
[解决办法]
use:
void SetSel(int nStartChar, int nEndChar, BOOL bNoScroll = False);
[解决办法]