Article ID: 199538
Article Last Modified on 10/2/2003
// hWnd is a handle to window EnableScrollBar(hWnd, SB_BOTH, ESB_DISABLE_BOTH);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.
SCROLLINFO si; si.cbSize = sizeof(SCROLLINFO); si.fMask = SIF_RANGE; si.nMin = si.nMax = 0; SetScrollInfo(hWnd, SB_HORZ, &si, TRUE); SetScrollInfo(hWnd, SB_VERT, &si, TRUE);
Additional query words: CScrollView CComboBox CScrollBar bus error scrollbar
Keywords: kbbug kbnofix kbuidesign kbdocview KB199538