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:
Julian Smart
2004-02-12 09:29:19 +00:00
parent 89a69c601d
commit a0d924c696

View File

@@ -4782,8 +4782,8 @@ bool wxWindowMSW::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags)
bool wxWindowMSW::MSWOnScroll(int orientation, WXWORD wParam,
WXWORD pos, WXHWND control)
{
if ( control )
{
if ( control && control != m_hWnd ) // Prevent infinite recursion
{
wxWindow *child = wxFindWinFromHandle(control);
if ( child )