*** empty log message ***

svn path=/trunk/boinc/; revision=2561
This commit is contained in:
Karl Chen 2003-10-25 09:11:50 +00:00
parent c090d1ef9c
commit 3d61b4a107
2 changed files with 12 additions and 17 deletions

View File

@ -7060,3 +7060,9 @@ Karl 2003-10-24
db/ db/
constraints.sql constraints.sql
Karl 2003-10-25
- client GUI: fixed context menu bug
client/win/
wingui_mainwindow.cpp

View File

@ -1861,33 +1861,22 @@ void CMainWindow::OnRButtonDown(UINT nFlags, CPoint point)
int nMenuId = -1; int nMenuId = -1;
GetCursorPos(&point); GetCursorPos(&point);
if(m_ProjectListCtrl.IsWindowVisible()) { int currentSelection = m_TabCtrl.GetCurSel();
if(currentSelection == PROJECT_ID) {
pMenuCtrl = &m_ProjectListCtrl; pMenuCtrl = &m_ProjectListCtrl;
nMenuId = PROJECT_MENU; nMenuId = PROJECT_MENU;
} else if(m_ResultListCtrl.IsWindowVisible()) { } else if(currentSelection == RESULT_ID) {
pMenuCtrl = &m_ResultListCtrl; pMenuCtrl = &m_ResultListCtrl;
nMenuId = RESULT_MENU; nMenuId = RESULT_MENU;
} else if(m_XferListCtrl.IsWindowVisible()) { } else if(currentSelection == XFER_ID) {
pMenuCtrl = &m_XferListCtrl; pMenuCtrl = &m_XferListCtrl;
nMenuId = XFER_MENU; nMenuId = XFER_MENU;
} else if(m_MessageListCtrl.IsWindowVisible()) { } else if(currentSelection == MESSAGE_ID) {
pMenuCtrl = &m_MessageListCtrl; pMenuCtrl = &m_MessageListCtrl;
nMenuId = MESSAGE_MENU; nMenuId = MESSAGE_MENU;
} }
// " pMenuCtrl->OnLButtonDown(nFlags, point) "
/*{
_AFX_THREAD_STATE* pThreadState = _afxThreadState.GetData();
pMenuCtrl->SendMessage(WM_LBUTTONUP, pThreadState->m_lastSentMsg.wParam,
pThreadState->m_lastSentMsg.lParam);
pMenuCtrl->SendMessage(WM_LBUTTONDOWN, pThreadState->m_lastSentMsg.wParam,
pThreadState->m_lastSentMsg.lParam);
pMenuCtrl->SendMessage(WM_LBUTTONUP, pThreadState->m_lastSentMsg.wParam,
pThreadState->m_lastSentMsg.lParam);
pMenuCtrl->SendMessage(WM_LBUTTONDOWN, nFlags, MAKELPARAM(point.x,point.y));
}*/
if(pMenuCtrl) { if(pMenuCtrl) {
pMenuCtrl->SetFocus(); pMenuCtrl->SetFocus();
// clear all other items - this must be done first // clear all other items - this must be done first