SendMessage(WM_VSCROLL,SB_LINEDOWN,0) don't work
-
I have an MDI application with CView based on CZoomView , based on CScrollView . In CMyView::OnKeyDown(...) I try follow :
void CMyView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call defaultint x = -1; switch(nChar) { case VK\_DOWN: x = SendMessage(WM\_VSCROLL,SB\_LINEDOWN,(LPARAM)0); TRACE("\\n %d \\n",x); break; default: break; } CZoomView::OnKeyDown(nChar, nRepCnt, nFlags);
}
the output of TRACE is 0 , but still the window scroll don't work ... why ? P.S. Of course , thw window have horizontal and vertical scroll .
-
I have an MDI application with CView based on CZoomView , based on CScrollView . In CMyView::OnKeyDown(...) I try follow :
void CMyView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call defaultint x = -1; switch(nChar) { case VK\_DOWN: x = SendMessage(WM\_VSCROLL,SB\_LINEDOWN,(LPARAM)0); TRACE("\\n %d \\n",x); break; default: break; } CZoomView::OnKeyDown(nChar, nRepCnt, nFlags);
}
the output of TRACE is 0 , but still the window scroll don't work ... why ? P.S. Of course , thw window have horizontal and vertical scroll .
Whether CMyView is derived from CScrollView?
Величие не Бога может быть недооценена.
-
Whether CMyView is derived from CScrollView?
Величие не Бога может быть недооценена.
Well , this is the project , with CMyView derived from CZoomView ... it will be a difference about this problem ?
-
Well , this is the project , with CMyView derived from CZoomView ... it will be a difference about this problem ?
if CZoomView is derived from CScrollView then no problem.
Величие не Бога может быть недооценена.