The information in this article applies to:
SYMPTOMSWhen clicking a disabled scroll bar of a window, the scroll bar becomes enabled. If the mouse click occurs where the scroll thumb would be, the application crashes. CAUSEThere is a bug in the Windows Portability Layer. RESOLUTIONSet the scroll range to 0, 0 (zero, zero) using SetScrollSizes() or SetScrollInfo(). STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONWhen a window has its scroll bar enabled, and is disabled using the following code
then the scroll bars are enabled if the user generates a mousedown in the disabled scroll bar. If the mousedown occurs where the scroll thumb would be, the application crashes with the following error message:
This problem appears for the scroll bar of a combo box but does not appear for the scroll-bar control. This fails with both PowerPC and 68KB platforms. The workaround is to set the scroll range to 0, 0, as demonstrated below:
REFERENCES(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Adam Kim, Microsoft Corporation. Additional query words: CScrollView CComboBox CScrollBar bus error scrollbar
Keywords : kbui kbMAC kbMFC KbUIDesign kbVC kbDSupport MacPrgIss |
Last Reviewed: December 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |