[RAPPS] fix the bug that Toolbar is not working

This commit is contained in:
赫杨 2020-08-03 21:54:01 +08:00 committed by Mark Jansen
parent 36870a02f7
commit d29fba7f7a
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -1784,6 +1784,7 @@ VOID CApplicationView::OnCommand(WPARAM wParam, LPARAM lParam)
break;
}
return;
}
else if ((HWND)lParam == m_ComboBox->GetWindow())
{
@ -1801,10 +1802,20 @@ VOID CApplicationView::OnCommand(WPARAM wParam, LPARAM lParam)
}
break;
}
return;
}
else if ((HWND)lParam == m_Toolbar->GetWindow())
{
// the message is sent from Toolbar. fall down to continue process
}
else
{
return;
}
}
// the LOWORD of wParam contains a Menu or Control ID
WORD wCommand = LOWORD(wParam);
switch (wCommand)
@ -1837,7 +1848,6 @@ VOID CApplicationView::OnCommand(WPARAM wParam, LPARAM lParam)
m_MainWindow->SendMessageW(WM_COMMAND, ID_RESETDB, 0);
break;
}
}
}
CApplicationView::CApplicationView(CMainWindow *MainWindow)