Answer the question
In order to leave comments, you need to log in
How or what message to send to move one window over another?
I'm practicing in WinApi and I have a task to implement the movement of one window by moving the pressed cursor in the client area of another window .
In the first window, movement is implemented when the mouse is held down in the client area as follows:
case WM_LBUTTONDOWN:
{
flag = true;
break;
}
case WM_MOUSEMOVE: {
if (flag) {
ReleaseCapture();
SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0);
}
break;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question