title: How to detect a selection change in my WTL::CListViewCtrl, and not in the parent?
body: <p>I have my own WTL derived listcontrol.</p>
  
  <pre><code>CPopupList : public CWindowImpl&lt;CPopupList, WTL::CListViewCtrl&gt;,
  </code></pre>
  
  <p>It works fine, except one thing: I want to catch the notification when selection changes. Not in the parent window (like this: <a href="https://stackoverflow.com/questions/1462895/how-to-detect-a-clistctrl-selection-change">How to detect a CListCtrl selection change?</a>) , but in the CPopupList itself, and then do some things.</p>
  
  <p>Actually I want a small hint window next to the currently selected item to appear, as an additional info of the current item. Just like VS does during autocomplete, giving more info about the functions/properties.</p>
  
  <p>Has anyone any tip how to do this?
  Thank you very much.</p>
  
  <hr>
  
  <p><strong>Update:</strong></p>
  
  <p>Tried:</p>
  
  <pre><code>BEGIN_MSG_MAP(CPopupList)
      REFLECTED_NOTIFY_CODE_HANDLER(LVN_ITEMCHANGED, OnListItemChanged)
      DEFAULT_REFLECTION_HANDLER()
  END_MSG_MAP()
  </code></pre>
  
  <p>But OnListItemChanged() is not called.
  In the parent the</p>
  
  <pre><code>REFLECT_NOTIFICATIONS()
  </code></pre>
  
  <p>is added.</p>
  
  <hr>
  
  <p><strong>Update2 - SOLUTION</strong></p>
  
  <p>I found the problem:</p>
  
  <p>The parent's MSG_HANDLER:</p>
  
  <pre><code>BEGIN_MSG_MAP(CEditorCtrl)
      MESSAGE_RANGE_HANDLER(WM_KEYFIRST,WM_KEYLAST,DelegateMessages)
      ...
      MESSAGE_
      ...
      NOTIFY_CODE_HANDLER(LVN_ITEMCHANGED,OnListItemChanged)
      CHAIN_MSG_MAP(parentType)
      ALT_MSG_MAP(11)
      COMMAND_HANDLER(IDC_PRINT_MONOCHROME,BN_CLICKED,OnPrintMonochromeButton)
      REFLECT_NOTIFICATIONS()
  END_MSG_MAP()
  </code></pre>
  
  <p>Moving the REFLECT_NOTIFICATIONS() above the ALT_MSG_MAP(11), and finally the OnListItemChanged is called in the control.</p>
  
  <p>Correct:</p>
  
  <pre><code>    REFLECT_NOTIFICATIONS()
      ALT_MSG_MAP(11)
      COMMAND_HANDLER(IDC_PRINT_MONOCHROME,BN_CLICKED,OnPrintMonochromeButton)
  </code></pre>