判断按钮的弹起和点击事件 mfc
判断按钮弹起和按下的事件:
BOOL LLLL::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->hwnd == nextBtn->m_hWnd && pMsg->message == WM_LBUTTONDOWN)
{
}
returnCDialog::PreTranslateMessage(pMsg);
}
其中nextBtn是指的所创建的按钮的指针
判断按钮的弹起和点击事件 mfc
判断按钮弹起和按下的事件:
BOOL LLLL::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->hwnd == nextBtn->m_hWnd && pMsg->message == WM_LBUTTONDOWN)
{
}
returnCDialog::PreTranslateMessage(pMsg);
}
其中nextBtn是指的所创建的按钮的指针