* Some small fixes to the previous commit. (Clicking still do not work in win2003, though)

svn path=/branches/shell-experiments/; revision=62680
This commit is contained in:
David Quintana 2014-04-07 10:12:41 +00:00
parent 97b02b410b
commit c46d671641
4 changed files with 36 additions and 14 deletions

View file

@ -602,7 +602,7 @@ HRESULT CMenuToolbarBase::ChangeHotItem(CMenuToolbarBase * toolbar, INT item, DW
if (m_hotBar == this && toolbar != this)
{
SendMessage(m_hwndToolbar, TB_SETHOTITEM, -1, 0);
SendMessage(m_hwndToolbar, TB_SETHOTITEM, (WPARAM)-1, 0);
}
m_hotBar = toolbar;
@ -967,7 +967,7 @@ HRESULT CMenuToolbarBase::KeyboardItemChange(DWORD dwSelectType)
if (prev != -1)
{
DbgPrint("Setting Hot item to null\n");
SendMessage(m_hwndToolbar, TB_SETHOTITEM, -1, 0);
SendMessage(m_hwndToolbar, TB_SETHOTITEM, (WPARAM) -1, 0);
}
return S_FALSE;
}