Changeset 447 for trunk


Ignore:
Timestamp:
May 3, 2010, 11:37:57 AM (11 years ago)
Author:
Silvan Scherrer
Message:

attemp to fix ticket:193 and ticket:185

Location:
trunk/Lucide/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/indexWindow.h

    r367 r447  
    5454        HWND getHWND() { return hWndPanel; }
    5555        HWND getIndexHWND() { return hWndIndex; }
     56
     57        // we need this clear function also when closing a document
     58        void clear( TreeRecord *parent );
     59
    5660       
    5761        void setDocument( LuDocument *_doc );
     
    6468        void loadPagesList();
    6569                void addNodes( TreeRecord *parent, LuIndexNode *n );
    66                 void clear( TreeRecord *parent );
     70
     71/* moved to public
     72                void clear( TreeRecord *parent ); */
    6773   
    6874               
  • trunk/Lucide/gui/lucide.cpp

    r438 r447  
    445445    }
    446446
     447    // clear the index
     448    indexWin->clear( NULL );
    447449    return true;
    448450}
     
    835837        WinSendMsg( hFrameTitlebar, TBM_SETHILITE,
    836838                    MPFROMSHORT( active ), MPVOID );
     839
     840        // reset the fullscreen menu check
     841        WinCheckMenuItem( hWndMenu, CM_FULLSCREEN, FALSE );
     842        WinSendMsg( hToolBar, TBM_SETCHECK, MPFROMSHORT( CM_FULLSCREEN ), (MPARAM)FALSE );
     843
    837844    }
    838845    else if ( fullscreenState == On )
     
    849856        }
    850857
     858        // set the fullscreen menu check
     859        WinCheckMenuItem( hWndMenu, CM_FULLSCREEN, TRUE );
     860        WinSendMsg( hToolBar, TBM_SETCHECK, MPFROMSHORT( CM_FULLSCREEN ), (MPARAM)TRUE );
     861
    851862        WinSetParent( hFrameSysmenu,  HWND_OBJECT, FALSE );
    852863        WinSetParent( hFrameTitlebar, HWND_OBJECT, FALSE );
     
    868879        WinSendMsg( hHorizSplitter, SBM_SETFIXEDSIZE,
    869880            MPFROMSHORT( DEFAULT_PICTSIZE + TOOLBAR_HEIGHT_ADD ), MPVOID );
     881
     882        // reset the presentation menu check
     883        WinCheckMenuItem( hWndMenu, CM_PRESENTATION, FALSE );
     884        WinSendMsg( hToolBar, TBM_SETCHECK, MPFROMSHORT( CM_PRESENTATION ), (MPARAM)FALSE );
     885
    870886    }
    871887    else if ( presentationState == On )
     
    874890        WinSendMsg( hVertSplitter, SBM_SETSPLITTERPOS, 0, MPVOID );
    875891        WinSendMsg( hVertSplitter, SBM_SETSPLITTERSIZE, 0, MPVOID );
     892
     893        // set the presentation menu check
     894        WinCheckMenuItem( hWndMenu, CM_PRESENTATION, TRUE );
     895        WinSendMsg( hToolBar, TBM_SETCHECK, MPFROMSHORT( CM_PRESENTATION ), (MPARAM)TRUE );
    876896    }
    877897
Note: See TracChangeset for help on using the changeset viewer.