当然是加入消息映射,处理通告了。
LVN_COLUMNCLICK
Notifies a list view control's parent window that a column was clicked. This notification message is sent in the form of a WM_NOTIFY message. LVN_COLUMNCLICK
pnmv = (LPNMLISTVIEW) lParam; Parameters
pnmv
Address of an NMLISTVIEW structure. The iItem member is -1, and the iSubItem member identifies the column. All other members are zero.
Return Values
No return value.
LVN_COLUMNCLICK
Notifies a list view control's parent window that a column was clicked. This notification message is sent in the form of a WM_NOTIFY message. LVN_COLUMNCLICK
pnmv = (LPNMLISTVIEW) lParam; Parameters
pnmv
Address of an NMLISTVIEW structure. The iItem member is -1, and the iSubItem member identifies the column. All other members are zero.
Return Values
No return value.
解决方案 »
- 颜色识别
- 大家帮忙看看,如何提高?是否需要看点mfc/uml/设计模式方面的书?
- vc程序有喜欢jay的人吗?
- 咨询:error C2059: syntax error : '&&'
- WSAAsyncSelect模型标榜是异步的,但多人同时使用时,要不要每个用户建一个线程?我现在就是一用户一线程。如果不用,那么怎样处理多用户同时发送的问题?
- 各位老大帮忙!!!VC++界面
- 如何保存聊天记录
- 不使用MFC,如何创建控制一个滑块控件
- 如何在Win32 Application 中将Radio Button 设为默认值,即运行后自动选择该项?(不支持Classwizard,没有类)急,在线等!!
- 在对话框中置一个图标(位图),双击此图标执行某一动作,在VB中很容易作,但VC中应该怎么实现?
- 我的计算机杀过病毒以后,点任一快捷方式和菜单都出现“找不到SIRC32。EXE”-用于打开应用程序的类型,怎么办?
- 初学者问题,关于视类和文档类的数据交换问题
In my SDI application, I think the list view control's parent is CFrameWnd's derived class, so I add OnChildNotify() in CFrameWnd's derived class, with following code to catch the message:switch (message)
{
case LVN_COLUMNCLICK:
break;But, no message received.
derive a class from CListCtrl and handle LVN_COLUMNCLICK itself can do the same thing.