Compilation fix for wxCStrData handling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis 2007-04-06 22:52:16 +00:00
parent 9aee0061fe
commit 0eabd3c635

View File

@ -313,7 +313,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
//
// Deal with the tab, extracting the Accel text
//
nIndex = sFullString.Find(sTgt.c_str());
nIndex = sFullString.Find(sTgt);
if (nIndex != -1)
{
bFoundAccel = true;
@ -325,7 +325,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
// Deal with the mnemonic character
//
sTgt = wxT("~");
nIndex = sFullString.Find(sTgt.c_str());
nIndex = sFullString.Find(sTgt);
if (nIndex != -1)
{
wxString sTmp = sFullString;
@ -351,7 +351,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
::GpiCharStringAt( rDC.GetHPS()
,&vPntStart
,sFullString.length()
,(PCH)sFullString.c_str()
,sFullString.char_str()
);
if (bFoundMnemonic)
{
@ -389,7 +389,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
::GpiCharStringAt( rDC.GetHPS()
,&vPntStart
,sAccel.length()
,(PCH)sAccel.c_str()
,sAccel.char_str()
);
}