The switch (LOWORD (wParam))
{
Case SB_LINEDOWN:
//please note here
Linedown MessageBox (HWND, TEXT (" "), TEXT (" scrollwindow "), MB_OK);
break;
Default:
break;
}
This is a piece of code of handling WM_VSCROLL message, a MessageBox function in the above, I used to watch my mouse to the operation process of slider, but I found a problem, that is my school official cites use the mouse to click the button down the slider to loosen, as long as the mouse on the location not removed and will popup hint window, that don't understand is why?
CodePudding user response:
Don't understand!!!!!!!!!!!!!!!!!!!!!!!!CodePudding user response:
MessageBox changeAfxDump & lt; <"Linedown \ n";
CodePudding user response:
I don't want to know the MessageBox to afxDump & lt; <"Linedown \ n"; Why when loosen the left key of mouse, as long as the cursor moves to the picture scroll bar under of the small arrow on the pop-up window will be kept?CodePudding user response:
Don't look at the log in a MessageBox.Use OutputDebugString, debug mode, the log will be output to the "output" window, the debug mode, you can use the debugview
CodePudding user response:
/*The WM_CANCELMODE message is sent to cancel certain modes, to The as mouse capture.
For example, the system sends this message to the active window
When a dialog box or message box is displayed.
Certain functions provides also send this message explicitly to the specified window
Chopped of been it is the active window.
For example, the EnableWindow function sends this message
The when disabling the specified window.
The Default Action
The DefWindowProc function cancels internal processing of standard scroll bar input,
Cancels internal menu processing,
And releases the mouse capture.
*/
MessageBox is a modal dialog box, affects the message, please be careful to use
You can also response WM_CANCELMODE
CodePudding user response:
Case WM_CANCELMODE:
//IMPORTANT MESSAGE! WM_CANCELMODE means that a
//dialog or some other modal process has started.
//we must make sure that we cancel any clicked state
//we are in, kill the timers, and release the capture.
StateClear (dwSpinnerState SPINNERSTATE_CLICKED);
If (bArrowTimed)
{
SendMessage (hParent, WM_VSCROLL MAKELONG (SB_ENDSCROLL,
HArrow, GetWindowLong (GWL_ID)), (LONG) hArrow);
HArrow, hArrow, KillTimer (GetWindowLong (GWL_ID));
BArrowTimed=FALSE;
}
ReleaseCapture ();
break;
CodePudding user response:
Thank you for your answerCodePudding user response:
Set the focus of a try,CodePudding user response: