在VC2005中,点击一个Edit控件时,怎样自动选取其中的文本?解决方案

在VC2005中,点击一个Edit控件时,怎样自动选取其中的文本?
在VC2005中,点击一个Edit控件时,怎样自动选取其中的文本?

------解决方案--------------------
自动选取其中的文本使用EN_CHANGE消息映射
------解决方案--------------------
CEdit::SetSel
------解决方案--------------------
是呵,在onclick里面,setsel全部就可以吧
------解决方案--------------------
CEdit::SetSel
void SetSel( DWORD dwSelection, BOOL bNoScroll = FALSE );

void SetSel( int nStartChar, int nEndChar, BOOL bNoScroll = FALSE );

Parameters

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 0 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.