想要把edit控件里面从0到n行设置成为select状态, 以便能够使用ReplaceSel来进行置换应怎样做?
解决方案 »
- VC(MFC)程序中如何将数据导出并写到excel表中?
- 请高手帮忙把我的程序OpenMP并行化
- 安装msdn时老是不成功。显示无效的驱动器,是什么原因呢?
- 请问谁知道《MFC Windows 程序设计(第2版)》哪下载?
- HttpQueryInfo问题,有力的出力,有钱的就不用出钱了`~~
- odbc 打开数据库后不能正常关机
- 菜鸟问题系列之--win32 console application
- sos: <form enctype="multipart/form-data"> 在这样表单中二进制和文本怎样同时传送?
- 请问怎样在listctrl控件中加入24位位图?(在线等候)
- Vs2005 WinForm C#(VC)开发,如何循环查询添加到Treeview中显示?
- 100分求救,如何设置recv函数的超时??
- 哪里出错?代码放置问题么?
This method selects a range of characters in an edit control.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 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.
bNoScroll
Indicates whether the caret should be scrolled into view. If FALSE, the caret is scrolled into view. If TRUE, the caret is not scrolled into view.
nStartChar
Specifies the starting position. If nStartChar is zero and nEndChar is –1, all the text in the edit control is selected. If nStartChar is –1, any current selection is removed.
nEndChar
Specifies the ending position.
你说的这个0到n行是什么意思。。