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