mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 06:51:57 +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:
parent
f8e5a94969
commit
67dd2ec87d
1 changed files with 11 additions and 4 deletions
|
@ -429,16 +429,23 @@ void ApplicationPageUpdate(void)
|
||||||
if (ListView_GetSelectedCount(hApplicationPageListCtrl))
|
if (ListView_GetSelectedCount(hApplicationPageListCtrl))
|
||||||
{
|
{
|
||||||
EnableWindow(hApplicationPageEndTaskButton, TRUE);
|
EnableWindow(hApplicationPageEndTaskButton, TRUE);
|
||||||
EnableWindow(hApplicationPageSwitchToButton, TRUE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
EnableWindow(hApplicationPageEndTaskButton, FALSE);
|
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 */
|
/* If we are on the applications tab the windows menu will be */
|
||||||
/* be present on the menu bar so enable & disable the menu items */
|
/* present on the menu bar so enable & disable the menu items */
|
||||||
if (TabCtrl_GetCurSel(hTabWnd) == 0)
|
if (TabCtrl_GetCurSel(hTabWnd) == 0)
|
||||||
{
|
{
|
||||||
HMENU hMenu;
|
HMENU hMenu;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue