Ignore:
Timestamp:
05/16/09 20:58:17 (11 years ago)
Author:
Eoin
Message:

Auto exit after a (currently hardcoded) time working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/HaliteWindow.cpp

    r759 r760  
    591591} 
    592592 
     593 
     594 
     595LRESULT HaliteWindow::OnUnconditionalShutdown(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam) 
     596{ 
     597        HAL_DEV_MSG(L"In OnUnconditionalShutdown"); 
     598 
     599        DestroyWindow(); 
     600 
     601        return 0; 
     602} 
     603 
     604void HaliteWindow::exitCallback() 
     605{ 
     606        HAL_DEV_MSG(L"In callback"); 
     607 
     608        PostMessage(WM_HALITE_UNCONDITIONAL_SHUTDOWN, 0, 0); 
     609} 
     610 
    593611LRESULT HaliteWindow::OnAutoShutdown(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 
    594612{        
    595         WTL::CMenuHandle m; 
     613/*      WTL::CMenuHandle m; 
    596614        WTL::CMenu menu;         
    597615 
     
    601619        POINT ptPoint; 
    602620        GetCursorPos(&ptPoint); 
    603         menu.TrackPopupMenu(0, ptPoint.x, ptPoint.y, m_hWnd); 
     621        menu.TrackPopupMenu(0, ptPoint.x, ptPoint.y, m_hWnd);*/ 
     622 
     623        hal::bittorrent::Instance().schedual_callback( 
     624                boost::posix_time::hours(5), bind(&HaliteWindow::exitCallback, this)); 
    604625 
    605626        return 0; 
Note: See TracChangeset for help on using the changeset viewer.