The information in this article applies to:
SYMPTOMSWhen a CSpinButtonCtrl is created as a child of a view derived from CScrollView, user interaction (clicking with the mouse or pressing an arrow key) with the Up-Down Control's arrow buttons causes an assertion in the viewscrl.cpp file on line 698. CAUSE
A WM_VSCROLL message (or a WM_HSCROLL message if the style is UDS_HORZ) is
sent as a notification when the user interacts with the Up-Down Control's
arrow buttons, either by clicking them or by pressing an arrow key.
Because the message originated from the Up-Down Control and not the
parent's scrollbar, the assertion in the first line fails.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0. RESOLUTIONAdd a handler for the WM_VSCROLL or WM_HSCROLL message in the Up-Down control's parent class. Test to see if the message originated from the Up- Down control or the scrollbar of the parent. If it originated from the Up- Down control, perform operations intended for the control, otherwise, pass the call to the parent's default handler as in this example:
Additional query words: 2.10 2.20 3.10 3.20 spin control CFormView
Keywords : kbcode kbnokeyword kbMFC kbVC |
Last Reviewed: January 26, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |