title: Check which button is clicked on a ON_COMMAND_RANGE Handler function
body: <p>So I've made a function with multiple buttons in one function</p>
  
  <pre><code>ON_COMMAND_RANGE(IDC_BUTTON1, IDC_BUTTON30, CDatenbankView::DeleteButtons)
  </code></pre>
  
  <p>Now, I have to find out in my function which button is clicked.</p>
  
  <pre><code>void CDatenbankView::DeleteButtons(UINT nID)
  {
      if (*Button1 is clicked*)
      {
          //Do something
      }
  }
  </code></pre>
  
  <p>Can anyone help me? I really have no Idea. I've got 30 buttons and I don't really want to write 30 different functions.</p>
  
  <p>I'm working with the <code>MFC</code>.</p>