void CCustomButton::OnLButtonDown(UINT uInt, CPoint point) { CString csCmd; int nID = GetFocus()->GetDlgCtrlID(); switch(nID) { case IDC_PLAY: // Button ID csCmd.Format("BT_AUDIO_BTNPLAY %d", NMP_BTN_ST_PRESS); break; case IDC_PAUSE:// Button ID csCmd.Format("BT_AUDIO_BTNPAUSE %d", NMP_BTN_ST_PRESS); break; default: break; } }
GetFocus()
GetDlgCtrlID()
this->GetDlgCtrlID()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)