git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45296
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
- ,(MPARAM)rsItem.char_str()
+ ,(MPARAM)rsItem.wx_str()
);
return nIndex;
} // end of wxChoice::DoAppend
);
return nIndex;
} // end of wxChoice::DoAppend
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
- ,(MPARAM)rsItem.char_str()
+ ,(MPARAM)rsItem.wx_str()
);
return nIndex;
} // end of wxChoice::DoInsert
);
return nIndex;
} // end of wxChoice::DoInsert
::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
- ,(MPARAM)rsStr.char_str()
+ ,(MPARAM)rsStr.wx_str()
- PCH pzStr = rsText.char_str();
-
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
,rsText.length()
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
,rsText.length()
);
if (lHits != GPI_OK)
{
);
if (lHits != GPI_OK)
{
//
bRc = ::GpiQueryTextBox( m_hPS
,l
//
bRc = ::GpiQueryTextBox( m_hPS
,l
+ ,(char *)rsString.wx_str()
,TXTBOX_COUNT // return maximum information
,avPoint // array of coordinates points
);
,TXTBOX_COUNT // return maximum information
,avPoint // array of coordinates points
);
bool bInteractive,
int nOrientation )
{
bool bInteractive,
int nOrientation )
{
- DEVOPENSTRUC vDevOpen = { rsDeviceName.char_str()
- ,rsDriverName.char_str()
+ DEVOPENSTRUC vDevOpen = { (char*)rsDeviceName.wx_str()
+ ,(char*)rsDriverName.wx_str()
else
lIndexType = LIT_END;
else
lIndexType = LIT_END;
- lIndex = (long)::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)rsItem.char_str());
+ lIndex = (long)::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)rsItem.wx_str());
m_nNumItems++;
#if wxUSE_OWNER_DRAWN
m_nNumItems++;
#if wxUSE_OWNER_DRAWN
lIndexType = LIT_SORTASCENDING;
else
lIndexType = LIT_END;
lIndexType = LIT_SORTASCENDING;
else
lIndexType = LIT_END;
- ::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)raChoices[i].char_str());
+ ::WinSendMsg(GetHwnd(), LM_INSERTITEM, (MPARAM)lIndexType, (MPARAM)raChoices[i].wx_str());
int nIndex = (int)::WinSendMsg( GetHwnd(),
LM_INSERTITEM,
MPFROMLONG((LONG)(i + nPos)),
int nIndex = (int)::WinSendMsg( GetHwnd(),
LM_INSERTITEM,
MPFROMLONG((LONG)(i + nPos)),
- (MPARAM)asItems[i].char_str() );
+ (MPARAM)asItems[i].wx_str() );
wxOwnerDrawn* pNewItem = CreateItem(nIndex);
wxOwnerDrawn* pNewItem = CreateItem(nIndex);
::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nNewN
::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nNewN
- ,(MPARAM)rsString.char_str()
+ ,(MPARAM)rsString.wx_str()
//
rItem.afStyle |= MIS_TEXT;
}
//
rItem.afStyle |= MIS_TEXT;
}
- pData = pItem->GetText().char_str();
+ pData = (char*) pItem->GetText().wx_str();
}
if (nPos == (size_t)-1)
}
if (nPos == (size_t)-1)
(*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);
- 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"));
}
{
wxLogLastError(wxT("ModifyMenu"));
}
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())
::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())
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())
{
#endif //owner drawn
{
uFlagsOld |= MIS_TEXT;
#endif //owner drawn
{
uFlagsOld |= MIS_TEXT;
- pData = m_text.char_str();
+ pData = (char*) m_text.wx_str();
::GpiCharStringAt( rDC.GetHPS()
,&vPntStart
,sFullString.length()
::GpiCharStringAt( rDC.GetHPS()
,&vPntStart
,sFullString.length()
- ,sFullString.char_str()
::GpiCharStringAt( rDC.GetHPS()
,&vPntStart
,sAccel.length()
::GpiCharStringAt( rDC.GetHPS()
,&vPntStart
,sAccel.length()
wxString wxTextCtrl::GetValue() const
{
wxString sStr = wxGetWindowText(GetHWND());
wxString wxTextCtrl::GetValue() const
{
wxString sStr = wxGetWindowText(GetHWND());
- char* zStr = sStr.char_str();
+ wxCharBuffer buf(sStr.char_str());
+ char* zStr = buf.data();
for ( ; *zStr; zStr++ )
{
for ( ; *zStr; zStr++ )
{
- ::WinSendMsg(GetHwnd(), MLM_INSERT, MPARAM(rsValue.char_str()), MPARAM(0));
+ ::WinSendMsg(GetHwnd(), MLM_INSERT, MPARAM(rsValue.wx_str()), MPARAM(0));
else
::WinSetWindowText(GetHwnd(), rsValue.c_str());
AdjustSpaceLimit();
else
::WinSetWindowText(GetHwnd(), rsValue.c_str());
AdjustSpaceLimit();
SData.PgmName = (char*)zShell;
sInputs = _T("/C ") + rCommand;
SData.PgmName = (char*)zShell;
sInputs = _T("/C ") + rCommand;
- SData.PgmInputs = (BYTE*)sInputs.char_str();
+ SData.PgmInputs = (BYTE*)sInputs.wx_str();
SData.TermQ = 0;
SData.Environment = 0;
SData.InheritOpt = SSF_INHERTOPT_SHELL;
SData.TermQ = 0;
SData.Environment = 0;
SData.InheritOpt = SSF_INHERTOPT_SHELL;
int l;
FONTMETRICS vFM; // metrics structure
BOOL bRc = FALSE;
int l;
FONTMETRICS vFM; // metrics structure
BOOL bRc = FALSE;
HPS hPS;
hPS = ::WinGetPS(GetHwnd());
HPS hPS;
hPS = ::WinGetPS(GetHwnd());
l = rString.length();
if (l > 0L)
{
l = rString.length();
if (l > 0L)
{
- pStr = rString.char_str();
-
//
// In world coordinates.
//
bRc = ::GpiQueryTextBox( hPS,
l,
//
// In world coordinates.
//
bRc = ::GpiQueryTextBox( hPS,
l,
+ (char*) rString.wx_str(),
TXTBOX_COUNT,// return maximum information
avPoint // array of coordinates points
);
TXTBOX_COUNT,// return maximum information
avPoint // array of coordinates points
);