Infinite recursion fix
Viktor Voroshylo: I did not put it in __WXWINCE__ defines as it looks like just another safeguard that will work on regular windows as well. The problem was that wxWindowMSW::MSWOnScroll is calling itself forever under winCE for wxListCtrl object. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4783,7 +4783,7 @@ bool wxWindowMSW::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags)
|
|||||||
bool wxWindowMSW::MSWOnScroll(int orientation, WXWORD wParam,
|
bool wxWindowMSW::MSWOnScroll(int orientation, WXWORD wParam,
|
||||||
WXWORD pos, WXHWND control)
|
WXWORD pos, WXHWND control)
|
||||||
{
|
{
|
||||||
if ( control )
|
if ( control && control != m_hWnd ) // Prevent infinite recursion
|
||||||
{
|
{
|
||||||
wxWindow *child = wxFindWinFromHandle(control);
|
wxWindow *child = wxFindWinFromHandle(control);
|
||||||
if ( child )
|
if ( child )
|
||||||
|
Reference in New Issue
Block a user