Handling of WM_NCLBUTTONUP
-
hiiii, I want to handle WM_NCLBUTTONUP message in my doc/view application and I don't know how to use it.Please help me how to handle it? ss
The same way you handle any window messages (assuming you're using MFC doc/view)
// Add to class
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);// Add to message map
ON_WM_NCLBUTTONUP()// Add implementation of handler method
void CMyWndClass::OnNcLButtonUp(UINT nHitTest, CPoint point)
{
baseclass::OnNcLButtonUp(nHitTest, point);... do stuff...
}MArk
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
The same way you handle any window messages (assuming you're using MFC doc/view)
// Add to class
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);// Add to message map
ON_WM_NCLBUTTONUP()// Add implementation of handler method
void CMyWndClass::OnNcLButtonUp(UINT nHitTest, CPoint point)
{
baseclass::OnNcLButtonUp(nHitTest, point);... do stuff...
}MArk
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
thanks for ur reply, sorry for my delay in giving this reply. I had done the same what you given in your reply. But i didn't get the result. WM_NCLBUTTONUP message was not called when my mouse up on the caption bar of my window. please help me.. urgent ss
I haven't tested this, but it's possible the default WM_NCLBUTTONDOWN message handler is capturing the mouse and sitting in a modal loop until the WM_NCLBUTTONUP is received. This would be for the default window dragging. You may have to do the same. Responding to just the WM_NCLBUTTONUP message is unique. What are you wanting to do when you receive that message? Maybe there's a simpler alternative. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: