Changeset 85 for trunk/Lucide/SOURCE


Ignore:
Timestamp:
Jul 22, 2006, 8:00:51 PM (15 years ago)
Author:
Eugene Romanenko
Message:

better index handling

Location:
trunk/Lucide/SOURCE/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/indexWindow.cpp

    r60 r85  
    224224bool IndexWindow::goToPage( TreeRecord *parent, long page )
    225225{
     226    if ( Lucide::dontSwitchPage ) {
     227        return true;
     228    }
     229       
    226230    SHORT atr = ( parent == NULL ) ? CMA_FIRST : CMA_FIRSTCHILD;
    227231    TreeRecord *pr = (TreeRecord *)WinSendMsg( hWndIndex, CM_QUERYRECORD,
  • trunk/Lucide/SOURCE/gui/lucide.cpp

    r72 r85  
    129129    WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_LASTPAGE), (MPARAM)enlast );
    130130
    131     dontSwitchPage = true;
    132131    WinSendDlgItemMsg( hToolBar, TBID_PAGENUM, SPBM_SETCURRENTVALUE,
    133132                       MPFROMLONG( docViewer->getCurrentPage() + 1 ), MPVOID );
    134     dontSwitchPage = false;
    135133    indexWin->goToPage( NULL, docViewer->getCurrentPage() );
    136134}
Note: See TracChangeset for help on using the changeset viewer.