[RsWitch-cvs] CVS: rswitch MainFrm.cpp,1.1.1.1,1.2
Status: Alpha
Brought to you by:
bcrochet
From: Brad P. C. <bcr...@us...> - 2000-12-03 21:18:56
|
Update of /cvsroot/rswitch/rswitch In directory slayer.i.sourceforge.net:/tmp/cvs-serv13167 Modified Files: MainFrm.cpp Log Message: * Added ReadHotKeyListFromRegistry * Added WriteHotKeyListToRegistry * Added code to destructor to clear out hotkey vector. Index: MainFrm.cpp =================================================================== RCS file: /cvsroot/rswitch/rswitch/MainFrm.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** MainFrm.cpp 2000/11/01 15:10:18 1.1.1.1 --- MainFrm.cpp 2000/12/03 21:18:52 1.2 *************** *** 19,22 **** --- 19,27 ---- // $Log$ + // Revision 1.2 2000/12/03 21:18:52 bcrochet + // * Added ReadHotKeyListFromRegistry + // * Added WriteHotKeyListToRegistry + // * Added code to destructor to clear out hotkey vector. + // // Revision 1.1.1.1 2000/11/01 15:10:18 bcrochet // Initial revision and import *************** *** 66,69 **** --- 71,78 ---- CMainFrame::~CMainFrame() { + for ( int i = m_hkList.size(); i > 0; --i ) + { + m_hkList.pop_back(); + } } *************** *** 105,108 **** --- 114,130 ---- } + boolean CMainFrame::ReadHotKeyListFromRegistry( HotKeyList& hkList ) + { + CHotKeyEntry* pHotKey = new CHotKeyEntry( HOTKEYF_CONTROL, (WORD)'C', "rw.clantmp.org", "d" ); + hkList.push_back( *pHotKey ); + delete pHotKey; + return true; + } + + boolean CMainFrame::WriteHotKeyListToRegistry( HotKeyList& hkList ) + { + return true; + } + ///////////////////////////////////////////////////////////////////////////// // CMainFrame diagnostics *************** *** 264,267 **** --- 286,290 ---- return -1; + ReadHotKeyListFromRegistry( m_hkList ); EnableAllHotkeys( true ); |