mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
Mario Kacmar <kario AT szm DOT sk>
- Fix Switch-To Button, enable only if one selected application. - See issue #4028 for more details. svn path=/trunk/; revision=38763
This commit is contained in:
@@ -429,16 +429,23 @@ void ApplicationPageUpdate(void)
|
||||
if (ListView_GetSelectedCount(hApplicationPageListCtrl))
|
||||
{
|
||||
EnableWindow(hApplicationPageEndTaskButton, TRUE);
|
||||
EnableWindow(hApplicationPageSwitchToButton, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
EnableWindow(hApplicationPageEndTaskButton, FALSE);
|
||||
EnableWindow(hApplicationPageSwitchToButton, FALSE);
|
||||
}
|
||||
/* Enable "Switch To" button only if one app is selected */
|
||||
if (ListView_GetSelectedCount(hApplicationPageListCtrl) == 1 )
|
||||
{
|
||||
EnableWindow(hApplicationPageSwitchToButton, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
EnableWindow(hApplicationPageSwitchToButton, FALSE);
|
||||
}
|
||||
|
||||
/* If we are on the applications tab the the windows menu will */
|
||||
/* be present on the menu bar so enable & disable the menu items */
|
||||
/* If we are on the applications tab the windows menu will be */
|
||||
/* present on the menu bar so enable & disable the menu items */
|
||||
if (TabCtrl_GetCurSel(hTabWnd) == 0)
|
||||
{
|
||||
HMENU hMenu;
|
||||
|
||||
Reference in New Issue
Block a user