projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test Clear() in the sample
[wxWidgets.git]
/
src
/
os2
/
menu.cpp
diff --git
a/src/os2/menu.cpp
b/src/os2/menu.cpp
index bd013d35bf249ca55fc1ee7cf25b0617509c22ac..7dc55b2412c21596543fed1546e0fd637507834b 100644
(file)
--- a/
src/os2/menu.cpp
+++ b/
src/os2/menu.cpp
@@
-201,7
+201,7
@@
void wxMenu::UpdateAccel(
//
// Find the (new) accel for this item
//
//
// Find the (new) accel for this item
//
- wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->Get
Text
());
+ wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->Get
ItemLabel
());
if (pAccel)
pAccel->m_command = pItem->GetId();
if (pAccel)
pAccel->m_command = pItem->GetId();
@@
-323,7
+323,7
@@
bool wxMenu::DoInsertOrAppend( wxMenuItem* pItem,
//
rItem.afStyle |= MIS_TEXT;
}
//
rItem.afStyle |= MIS_TEXT;
}
- pData =
pItem->GetText().char
_str();
+ pData =
(char*) pItem->GetItemLabel().wx
_str();
}
if (nPos == (size_t)-1)
}
if (nPos == (size_t)-1)
@@
-804,7
+804,7
@@
WXHMENU wxMenuBar::Create()
(*it)->m_vMenuData.iPosition = (SHORT)i;
(*it)->m_vMenuData.iPosition = (SHORT)i;
- rc = (APIRET)::WinSendMsg(m_hMenu, MM_INSERTITEM, (MPARAM)&(*it)->m_vMenuData, (MPARAM)m_titles[i].
char
_str());
+ rc = (APIRET)::WinSendMsg(m_hMenu, MM_INSERTITEM, (MPARAM)&(*it)->m_vMenuData, (MPARAM)m_titles[i].
wx
_str());
if (rc == (APIRET)MIT_MEMERROR || rc == (APIRET)MIT_ERROR)
{
vError = ::WinGetLastError(vHabmain);
if (rc == (APIRET)MIT_MEMERROR || rc == (APIRET)MIT_ERROR)
{
vError = ::WinGetLastError(vHabmain);
@@
-847,7
+847,7
@@
void wxMenuBar::EnableTop(
Refresh();
} // end of wxMenuBar::EnableTop
Refresh();
} // end of wxMenuBar::EnableTop
-void wxMenuBar::Set
LabelTop
(
+void wxMenuBar::Set
MenuLabel
(
size_t nPos
, const wxString& rLabel
)
size_t nPos
, const wxString& rLabel
)
@@
-879,21
+879,21
@@
void wxMenuBar::SetLabelTop(
}
nId = vItem.id;
}
nId = vItem.id;
- if (::WinSendMsg(GetHmenu(), MM_SETITEMTEXT, MPFROMSHORT(nId), (MPARAM)rLabel.
char
_str()));
+ if (::WinSendMsg(GetHmenu(), MM_SETITEMTEXT, MPFROMSHORT(nId), (MPARAM)rLabel.
wx
_str()));
{
wxLogLastError(wxT("ModifyMenu"));
}
Refresh();
{
wxLogLastError(wxT("ModifyMenu"));
}
Refresh();
-} // end of wxMenuBar::Set
LabelTop
+} // end of wxMenuBar::Set
MenuLabel
-wxString wxMenuBar::Get
LabelTop
(
+wxString wxMenuBar::Get
MenuLabel
(
size_t nPos
) const
{
wxCHECK_MSG( nPos < GetMenuCount(), wxEmptyString,
size_t nPos
) const
{
wxCHECK_MSG( nPos < GetMenuCount(), wxEmptyString,
- wxT("invalid menu index in wxMenuBar::Get
LabelTop
") );
+ wxT("invalid menu index in wxMenuBar::Get
MenuLabel
") );
return m_titles[nPos];
return m_titles[nPos];
-} // end of wxMenuBar::Get
LabelTop
+} // end of wxMenuBar::Get
MenuLabel
// ---------------------------------------------------------------------------
// wxMenuBar construction
// ---------------------------------------------------------------------------
// wxMenuBar construction
@@
-925,7
+925,7
@@
wxMenu* wxMenuBar::Replace(
if (IsAttached())
{
::WinSendMsg((HWND)m_hMenu, MM_REMOVEITEM, MPFROM2SHORT(nId, TRUE), (MPARAM)0);
if (IsAttached())
{
::WinSendMsg((HWND)m_hMenu, MM_REMOVEITEM, MPFROM2SHORT(nId, TRUE), (MPARAM)0);
- ::WinSendMsg((HWND)m_hMenu, MM_INSERTITEM, (MPARAM)&pMenu->m_vMenuData, (MPARAM)sTitle.
char
_str());
+ ::WinSendMsg((HWND)m_hMenu, MM_INSERTITEM, (MPARAM)&pMenu->m_vMenuData, (MPARAM)sTitle.
wx
_str());
#if wxUSE_ACCEL
if (pMenuOld->HasAccels() || pMenu->HasAccels())
#if wxUSE_ACCEL
if (pMenuOld->HasAccels() || pMenu->HasAccels())
@@
-958,7
+958,7
@@
bool wxMenuBar::Insert( size_t nPos,
::WinSendMsg( (HWND)m_hMenu
,MM_INSERTITEM
,(MPARAM)&pMenu->m_vMenuData
::WinSendMsg( (HWND)m_hMenu
,MM_INSERTITEM
,(MPARAM)&pMenu->m_vMenuData
- ,(MPARAM)sTitle.
char
_str()
+ ,(MPARAM)sTitle.
wx
_str()
);
#if wxUSE_ACCEL
if (pMenu->HasAccels())
);
#if wxUSE_ACCEL
if (pMenu->HasAccels())
@@
-990,7
+990,7
@@
bool wxMenuBar::Append( wxMenu* pMenu,
if ( IsAttached() )
{
pMenu->m_vMenuData.iPosition = MIT_END;
if ( IsAttached() )
{
pMenu->m_vMenuData.iPosition = MIT_END;
- ::WinSendMsg((HWND)m_hMenu, MM_INSERTITEM, (MPARAM)&pMenu->m_vMenuData, (MPARAM)sTitle.
char
_str());
+ ::WinSendMsg((HWND)m_hMenu, MM_INSERTITEM, (MPARAM)&pMenu->m_vMenuData, (MPARAM)sTitle.
wx
_str());
#if wxUSE_ACCEL
if (pMenu->HasAccels())
{
#if wxUSE_ACCEL
if (pMenu->HasAccels())
{