//
wxMenu* pSubmenu = pItem->GetSubMenu();
- MENUITEM &rItem = (pSubmenu != NULL)?pSubmenu->m_vMenuData:
+ MENUITEM& rItem = (pSubmenu != NULL)?pSubmenu->m_vMenuData:
pItem->m_vMenuData;
if(pSubmenu != NULL)
{
if (pItem->IsSeparator())
{
- vItem.afStyle |= MIS_SEPARATOR;
+ rItem.afStyle |= MIS_SEPARATOR;
}
//
// required by ::MM_INSERTITEM message API
//
- wxMenu* pSubmenu = pItem->GetSubMenu();
-
if (pSubmenu != NULL)
{
wxASSERT_MSG(pSubmenu->GetHMenu(), wxT("invalid submenu"));
pSubmenu->SetParent(this);
- vItem.iPosition = 0; // submenus have a 0 position
- vItem.id = (USHORT)pSubmenu->GetHMenu();
- vItem.afStyle |= MIS_SUBMENU | MIS_TEXT;
+ rItem.iPosition = 0; // submenus have a 0 position
+ rItem.id = (USHORT)pSubmenu->GetHMenu();
+ rItem.afStyle |= MIS_SUBMENU | MIS_TEXT;
}
else
{
- vItem.id = pItem->GetId();
+ rItem.id = pItem->GetId();
}
BYTE* pData;
//
// Menu is just a normal string (passed in data parameter)
//
- vItem.afStyle |= MIS_TEXT;
+ rItem.afStyle |= MIS_TEXT;
pData = (char*)pItem->GetText().c_str();
}
// Ensure the accelerator table is set to the frame (not the client!)
//
if (!::WinSetAccelTable( vHabmain
- ,(HWND)pFrame->GetFrame()
+ ,(HWND)pFrame->GetHWND()
,m_vAccelTable.GetHACCEL()
))
wxLogLastError("WinSetAccelTable");