From a8d94c3d8dfd44683ad8da9a493c4af4e7baf9f7 Mon Sep 17 00:00:00 2001 From: Dan Werthimer Date: Fri, 23 May 2003 19:56:26 +0000 Subject: [PATCH] no message svn path=/trunk/boinc/; revision=1246 --- client/win/wingui_mainwindow.cpp | 39 +++++--------------------------- client/win/wingui_mainwindow.h | 1 - 2 files changed, 6 insertions(+), 34 deletions(-) diff --git a/client/win/wingui_mainwindow.cpp b/client/win/wingui_mainwindow.cpp index 7e2c3ea6b0..fa56ee1949 100755 --- a/client/win/wingui_mainwindow.cpp +++ b/client/win/wingui_mainwindow.cpp @@ -503,43 +503,28 @@ void CMainWindow::ShowTab(int nTab) m_TabCtrl.SetCurSel(nTab); // make the selected control visible, all the rest invisible + m_ProjectListCtrl.ModifyStyle(WS_VISIBLE, 0); + m_ResultListCtrl.ModifyStyle(WS_VISIBLE, 0); + m_XferListCtrl.ModifyStyle(WS_VISIBLE, 0); + m_MessageListCtrl.ModifyStyle(WS_VISIBLE, 0); + m_UsagePieCtrl.ModifyStyle(WS_VISIBLE, 0); if(nTab == PROJECT_ID) { m_ProjectListCtrl.ModifyStyle(0, WS_VISIBLE); - m_ResultListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_XferListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_MessageListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_UsagePieCtrl.ModifyStyle(WS_VISIBLE, 0); m_ProjectListCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_FRAME); } else if(nTab == RESULT_ID) { - m_ProjectListCtrl.ModifyStyle(WS_VISIBLE, 0); m_ResultListCtrl.ModifyStyle(0, WS_VISIBLE); - m_XferListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_MessageListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_UsagePieCtrl.ModifyStyle(WS_VISIBLE, 0); m_ResultListCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_FRAME); } else if(nTab == XFER_ID) { - m_ProjectListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_ResultListCtrl.ModifyStyle(WS_VISIBLE, 0); m_XferListCtrl.ModifyStyle(0, WS_VISIBLE); - m_MessageListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_UsagePieCtrl.ModifyStyle(WS_VISIBLE, 0); m_XferListCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_FRAME); } else if(nTab == MESSAGE_ID) { - m_ProjectListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_ResultListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_XferListCtrl.ModifyStyle(WS_VISIBLE, 0); m_MessageListCtrl.ModifyStyle(0, WS_VISIBLE); - m_UsagePieCtrl.ModifyStyle(WS_VISIBLE, 0); if(m_bMessage) { m_bMessage = false; SetStatusIcon(ICON_NORMAL); } m_MessageListCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_FRAME); } else if(nTab == USAGE_ID) { - m_ProjectListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_ResultListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_XferListCtrl.ModifyStyle(WS_VISIBLE, 0); - m_MessageListCtrl.ModifyStyle(WS_VISIBLE, 0); m_UsagePieCtrl.ModifyStyle(0, WS_VISIBLE); m_UsagePieCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_FRAME); } @@ -1090,18 +1075,6 @@ void CMainWindow::OnCommandFileClearMessages() m_MessageListCtrl.DeleteAllItems(); } -////////// -// CMainWindow::OnCommandConnectionConnectNow -// arguments: void -// returns: void -// function: causes the client to connect to the network -/*void CMainWindow::OnCommandConnectionConnectNow() -{ - for(int ii = 0; ii < gstate.projects.size(); ii ++) { - gstate.projects[ii]->sched_rpc_pending = true; - } -}*/ - ////////// // CMainWindow::GetProjectFromContextMenu // arguments: void @@ -1684,7 +1657,7 @@ LRESULT CMainWindow::OnStatusIcon(WPARAM wParam, LPARAM lParam) if(IsWindowVisible()) { ShowWindow(SW_HIDE); } else { - ShowWindow(SW_SHOW); + ShowWindow(SW_SHOWNORMAL); } } return TRUE; diff --git a/client/win/wingui_mainwindow.h b/client/win/wingui_mainwindow.h index 9334c0d3dc..cf6e9ac2c8 100755 --- a/client/win/wingui_mainwindow.h +++ b/client/win/wingui_mainwindow.h @@ -143,7 +143,6 @@ protected: afx_msg void OnCommandWorkShowGraphics(); afx_msg void OnCommandFileClearInactive(); afx_msg void OnCommandFileClearMessages(); -// afx_msg void OnCommandConnectionConnectNow(); afx_msg void OnCommandConnectionHangupIfDialed(); afx_msg void OnCommandConnectionConfirmBeforeConnecting(); afx_msg void OnCommandHide();