mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:33:22 +00:00
[RAPPS] fix the bug that Toolbar is not working
This commit is contained in:
parent
36870a02f7
commit
d29fba7f7a
1 changed files with 37 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue