title: Remove selection highlight in listviewgroup?
body: <p>This is what happens when you hover your mouse over one of my listview groups: <a href="http://localhostr.com/file/930/vtdFrMNdvDwz/Untitled.png" rel="nofollow">http://localhostr.com/file/930/vtdFrMNdvDwz/Untitled.png</a></p>
  
  <p>I researched on the msdn website for System::Windows::Forms::ListViewGroup and came up with no results relating to how to disable selection of a group / the click event as well.</p>
  
  <p>The listview and groups are made with the designer in visual studio 2010 vc++ windows form and automatically generate this code:</p>
  
  <pre><code>System::Windows::Forms::ListViewGroup^  listViewGroup5 = (gcnew System::Windows::Forms::ListViewGroup(L"Player", System::Windows::Forms::HorizontalAlignment::Center));
  </code></pre>
  
  <p>I am currently using the following code to override WndProc for my form and I assume that the answer to my solution would be to also override WndProc for listview and if that is the case, how would I combine it into 1 piece of code...and if not, what would be the solution?</p>
  
  <pre><code>protected:
      virtual void WndProc(Message% m) override 
      {
          __super::WndProc(m);
          if (m.Msg == WM_NCHITTEST) 
          {
              switch ((int)m.Result) 
              {
              case HTLEFT: 
              case HTRIGHT: 
              case HTTOP: 
              case HTTOPLEFT: 
              case HTTOPRIGHT:
              case HTBOTTOMLEFT: 
              case HTBOTTOMRIGHT:
                  m.Result = (IntPtr)HTCLIENT;
              }
          }
      }
  </code></pre>
  
  <p>Thank you!</p>