16,471
社区成员
发帖
与我相关
我的任务
分享
void CMyBytton::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
::SetCapture(this->GetSafeHwnd());
CButton::OnLButtonDown(nFlags, point);
}
void CMyBytton::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
//::ReleaseCapture();
CButton::OnLButtonUp(nFlags, point);
}
对话框里按钮点击代码
void CtestDlg::OnBnClickedButton2()
{
// TODO: 在此添加控件通知处理程序代码
MessageBox(_T("test"));
}