From: John L. <jr...@us...> - 2006-05-15 05:28:56
|
Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16623/wxLua/modules/wxluadebug/src Modified Files: splttree.cpp Log Message: fix for splittree in msw not being a wxScrolledWindow Index: splttree.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/src/splttree.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** splttree.cpp 15 May 2006 04:48:37 -0000 1.10 --- splttree.cpp 15 May 2006 05:28:53 -0000 1.11 *************** *** 172,175 **** --- 172,177 ---- void wxRemotelyScrolledTreeCtrl::DoCalcScrolledPosition(int x, int y, int *xx, int *yy) const { + // wxTreeCtrl is not a scrolled window in MSW so don't do anything + #if USE_GENERIC_TREECTRL || !defined(__WXMSW__) int vx = 0, vy = 0; GetViewStart(&vx, &vy); *************** *** 180,186 **** --- 182,193 ---- if (xx) *xx = x - vx*pixelsPerUnitX; if (yy) *yy = y - vy*pixelsPerUnitY; + #else + if (xx) *xx = x; + if (yy) *yy = y; + #endif } void wxRemotelyScrolledTreeCtrl::DoCalcUnscrolledPosition(int x, int y, int *xx, int *yy) const { + #if USE_GENERIC_TREECTRL || !defined(__WXMSW__) int vx = 0, vy = 0; GetViewStart(&vx, &vy); *************** *** 191,194 **** --- 198,205 ---- if (xx) *xx = x + vx*pixelsPerUnitX; if (yy) *yy = y + vy*pixelsPerUnitY; + #else + if (xx) *xx = x; + if (yy) *yy = y; + #endif } |