📄 subject_34875.htm
字号:
<p>
序号:34875 发表者:水草98 发表日期:2003-04-02 16:12:20
<br>主题:CListCtrl中选中某行后怎么高亮显示?怎么在CListCtrl中画上格子?
<br>内容:rt
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:微笑的撒旦 回复日期:2003-04-02 17:26:29
<br>内容:m_eitList.SetExtendedStyle( LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES|LVS_EX_TWOCLICKACTIVATE);<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Anu 回复日期:2003-04-02 17:33:13
<br>内容:先定义函数:<BR>void 类名::AddExStyle(DWORD dwNewStyle)<BR>{<BR> DWORD dwStyle = ::SendMessage (clistctrl对象.m_hWnd, LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0);<BR> dwStyle |= dwNewStyle;<BR><BR> ::SendMessage (clistctrl对象.m_hWnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dwStyle);<BR><BR>}<BR><BR>然后在OnInitDialog()中:AddExStyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES );<BR><BR>LVS_EX_FULLROWSELECT <BR>Version 4.70. When an item is selected, the item and all its subitems are highlighted. This style is available only in conjunction with the LVS_REPORT style. <BR>LVS_EX_GRIDLINES <BR>Version 4.70. Displays gridlines around items and subitems. This style is available only in conjunction with the LVS_REPORT style. <BR><BR><BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -