Explore My Other Channel for More Cool and Valuable Insights
π Youtube Learn Tech Tipsπ Tiktok
π Facebook:Using AfxMessageBox and WM_LBUTTONUP in mouse event for display position of mouse
Here is my projects interface, using mouse click on any of dialog, you can see this results
Choose dialog when create new projects, and then choose WM_LBUTTONUP message
Source code
void CMouseUtilDlg::OnLButtonUp(UINT nFlags, CPoint point)
{
CString szMsg;
szMsg.Format(L"X %d Y %d", point.x, point.y);
AfxMessageBox(szMsg);
CWnd::OnLButtonDown(nFlags, point);
}
Are you interested in topic "Display mouse position on dialog using C" plus plus MFC from Webzone Tech Tips? If you have any thoughts or questions, please share them in the comment section below. I would love to hear from you and chat about it
Webzone Tech Tips Zidane