title: MFC Control "CVSListBox" - How to use the interface "AddButton"?
body: <p>Is there anybody could tech me how to use the interface "AddButton" of the MFC control? "CVSListBox"? I wrote the below code, and the new buttons have showed on the control successful, but I can't respond its ON_BN_CLICKED event. Could you tell me why? thanks.</p>
  
  <pre><code>    ON_BN_CLICKED(IDC_BTN_AWSPORTIMPORT, &amp;CPgTestAwsPortfolio::OnBnClickedBtnAwsportimport)
  
      void CPgTestAwsPortfolio::OnBnClickedBtnAwsportimport()
      {
          int xx = 100;
      }
  
  CPortCaseListBox m_lbAwsPortCases;
      m_pgTestAwsPort.m_lbAwsPortCases.AddButton(IDB_AFXBARRES_NEW, _T("Import"), 0, 0, IDC_BTN_AWSPORTIMPORT);
  </code></pre>