title: Event when a particular Slider is changed
body: <p>I am writing a C++ MFC Dialog based Application and my program has lots of sliders. I want the program to call a function depending on which Slider is being changed by the user. I tried using GetPos() but not much success so far. Any easier way of doing this?</p>
  
  <p>Message Map:</p>
  
  <pre><code>BEGIN_MESSAGE_MAP(CSerialPortDlg, CDialog)
      ON_WM_SYSCOMMAND()
      ON_WM_PAINT()
      ON_WM_QUERYDRAGICON()
      //}}AFX_MSG_MAP
      //ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
      ON_BN_CLICKED(IDC_READ_COMM, OnBnClickedReadComm)
      ON_WM_CLOSE()
      ON_BN_CLICKED(IDC_WRITE, OnBnClickedWrite)
      //ON_CBN_SELCHANGE(IDC_SENSORS, OnCbnSelchangeSensors)
      //ON_CBN_SELCHANGE(IDC_SENSOR_LIST, OnCbnSelchangeSensorList)
      ON_BN_CLICKED(IDC_GO, OnGo)
      ON_WM_TIMER()
      ON_BN_CLICKED(IDC_KILL_TIMER, OnBnClickedKillTimer)
      ON_BN_CLICKED(IDC_READ_TIMER, OnBnClickedReadTimer)
      ON_BN_CLICKED(IDC_WRITE_COMM, OnBnClickedWriteComm)
      ON_BN_CLICKED(IDC_TERMINATE, OnBnClickedTerminate)
      ON_BN_CLICKED(IDC_RUN, OnBnClickedRun)
      ON_CONTROL(NM_CLICK,IDC_BOOM_SLIDER, Write_Boom)
      ON_CONTROL(NM_CLICK,IDC_PITCH_SLIDER, Write_Pitch)
  END_MESSAGE_MAP()
  </code></pre>
  
  <p>...</p>