当然是加入消息映射,处理通告了。
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. 

解决方案 »

  1.   

    I have read the document on this topic.
    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.
      

  2.   

    Add handle in OnNotify or add a LVN_COLUMNCLICK message map entry in the frame.
    derive a class from CListCtrl and handle LVN_COLUMNCLICK itself can do the same thing.