Patch level : 10.0
Files correlati : xvaga.dll Ricompilazione Demo : [ ] Commento : 0000876: errore di applicazione cg3 Ho installato l'ultima versione 10 - ho convertito azienda DASSI , in variazione di un movimento di prima nota ho premuto il tasto "mastrino" per visualizzare la scheda , appare l'errore allegato git-svn-id: svn://10.65.10.50/trunk@17260 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
80b7b90a70
commit
84aafe2647
@ -1047,37 +1047,40 @@ void TTaskWin::OnSize(wxSizeEvent& evt)
|
||||
|
||||
void TTaskWin::SetMenuTree(const MENU_ITEM* tree)
|
||||
{
|
||||
if (m_menu)
|
||||
xvt_res_free_menu_tree(m_menu);
|
||||
m_menu = xvt_menu_duplicate_tree(tree);
|
||||
|
||||
wxMenuBar* bar = GetMenuBar();
|
||||
for ( ; tree != NULL && tree->tag != 0; tree++)
|
||||
{
|
||||
wxMenu* pMenu = new wxMenu;
|
||||
for (MENU_ITEM* mi = tree->child; mi != NULL && mi->tag != 0; mi++)
|
||||
{
|
||||
wxMenuItem* item = NULL;
|
||||
if (mi->separator)
|
||||
item = new wxMenuItem(pMenu, wxID_SEPARATOR);
|
||||
else
|
||||
item = new wxMenuItem(pMenu, mi->tag, mi->text, wxEmptyString, mi->checkable);
|
||||
pMenu->Append(item);
|
||||
}
|
||||
const int nLast = bar->GetMenuCount()-1;
|
||||
int m;
|
||||
for (m = 2; m < nLast; m++)
|
||||
{
|
||||
wxMenu* pMenu = bar->GetMenu(m);
|
||||
if (pMenu->FindItem(tree->child->tag))
|
||||
{
|
||||
bar->Remove(m);
|
||||
// delete pMenu;
|
||||
break;
|
||||
}
|
||||
}
|
||||
bar->Insert(m, pMenu, tree->text);
|
||||
}
|
||||
if (bar != NULL && tree != NULL)
|
||||
{
|
||||
if (m_menu)
|
||||
xvt_res_free_menu_tree(m_menu);
|
||||
m_menu = xvt_menu_duplicate_tree(tree);
|
||||
|
||||
for ( ; tree != NULL && tree->tag != 0; tree++)
|
||||
{
|
||||
wxMenu* pMenu = new wxMenu;
|
||||
for (MENU_ITEM* mi = tree->child; mi != NULL && mi->tag != 0; mi++)
|
||||
{
|
||||
wxMenuItem* item = NULL;
|
||||
if (mi->separator)
|
||||
item = new wxMenuItem(pMenu, wxID_SEPARATOR);
|
||||
else
|
||||
item = new wxMenuItem(pMenu, mi->tag, mi->text, wxEmptyString, mi->checkable);
|
||||
pMenu->Append(item);
|
||||
}
|
||||
const int nLast = bar->GetMenuCount()-1;
|
||||
int m;
|
||||
for (m = 2; m < nLast; m++)
|
||||
{
|
||||
wxMenu* pMenu = bar->GetMenu(m);
|
||||
if (pMenu->FindItem(tree->child->tag))
|
||||
{
|
||||
bar->Remove(m);
|
||||
// delete pMenu;
|
||||
break;
|
||||
}
|
||||
}
|
||||
bar->Insert(m, pMenu, tree->text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void TTaskWin::PushMenuTree(const MENU_ITEM* tree, wxWindow* owner)
|
||||
|
Loading…
x
Reference in New Issue
Block a user