RT
解决方案 »
- 调用完回调函数后就出现“0x00000000 处未处理的异常: 0xC0000005: Access violation”错误,如何解决线程同步?
- 把CRichEditCtrl中的文字保存成图片格式
- CListCtrl如何自绘选中边框?
- 如何创建二进制文件
- 请教串口接线的问题
- manifest可以编入到资源里,可是我Debug和release出来的东西不一样啊,debug有效果,Release没有,怎么才能让Release也有呢?
- 主对话框里面有一个按钮,按后出现一个模式对话框.现在的问题是我怎么在模式对话框里获取主对话框的数据
- 谁能告诉我 在windows 下引起 "无效页面错误的原因“ 这个错误好讨厌?
- 如何读取一个二进制文件,根据内部数据绘制曲线
- 如何插入一cursor
- 菜鸟的问题:在CRichEditCtrl中如何得到当前行的index
- 如何在msdn-online上找我没有装的vc6.0的EXAMPLES代码?
int LineLength( int nLine = -1 ) const;Return ValueWhen LineLength is called for a multiple-line edit control, the return value is the length (in bytes) of the line specified by nLine. When LineLength is called for a single-line edit control, the return value is the length (in bytes) of the text in the edit control.ParametersnLineSpecifies the character index of a character in the line whose length is to be retrieved. If this parameter is –1, the length of the current line (the line that contains the caret) is returned, not including the length of any selected text within the line. When LineLength is called for a single-line edit control, this parameter is ignored.ResCall this function to retrieve the length of a line in a rich edit control. Use the LineIndex member function to retrieve a character index for a given line number within this CRichEditCtrl object.For more information, seeEM_LINELENGTH in the Win32 documentation.ExampleSee the example for LineIndex.CRichEditCtrl Overview | Class Members | Hierarchy ChartSee Also CRichEditCtrl::LineIndex
是啊,正是因为每行显示的字符数可能不同,才想得到其中字符数最多的行的列数,就是这个意思。有没有现成的函数啊?