Lots of OS/2 Updates mirroring msw updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-05-29 18:59:17 +00:00
parent 30bc4a8fc0
commit 1ec46a5b35
10 changed files with 1101 additions and 242 deletions

View File

@@ -389,7 +389,7 @@ bool wxMenu::DoInsertOrAppend(
//
// If we're already attached to the menubar, we must update it
//
if (IsAttached())
if (IsAttached() && m_menuBar->IsAttached())
{
m_menuBar->Refresh();
}
@@ -460,7 +460,7 @@ wxMenuItem* wxMenu::DoRemove(
,MPFROM2SHORT(pItem->GetId(), TRUE)
,(MPARAM)0
);
if (IsAttached())
if (IsAttached() && m_menuBar->IsAttached())
{
//
// Otherwise, the chane won't be visible