m_refData = new wxAcceleratorRefData;
- ulId = atol((char*)rResource.c_str());
+ ulId = atol(rResource.c_str());
hAccel = ::WinLoadAccelTable( vHabmain
,NULL // resources always in .exe
,(ULONG)ulId
m_hWnd = (WXHWND)::WinCreateWindow( GetHwndOf(pParent) // Parent handle
,WC_BUTTON // A Button class window
- ,(PSZ)sLabel.c_str() // Button text
+ ,sLabel.c_str() // Button text
,lStyle // Button style
,0, 0, 0, 0 // Location and size
,GetHwndOf(pParent) // Owner handle
void wxCheckBox::SetLabel( const wxString& rsLabel )
{
wxString sLabel=::wxPMTextToLabel(rsLabel);
- ::WinSetWindowText(GetHwnd(), (PSZ)sLabel.c_str());
+ ::WinSetWindowText(GetHwnd(), sLabel.c_str());
} // end of wxCheckBox::SetLabel
wxSize wxCheckBox::DoGetBestSize() const
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
- ,(MPARAM)rsItem.c_str()
+ ,(MPARAM)rsItem.char_str()
);
return nIndex;
} // end of wxChoice::DoAppend
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
- ,(MPARAM)rsItem.c_str()
+ ,(MPARAM)rsItem.char_str()
);
return nIndex;
} // end of wxChoice::DoInsert
::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
- ,(MPARAM)rsStr.c_str()
+ ,(MPARAM)rsStr.char_str()
);
if (pData)
if ( HasFlag(wxCB_READONLY) )
SetStringSelection(rsValue);
else
- ::WinSetWindowText(GetHwnd(), (PSZ)rsValue.c_str());
+ ::WinSetWindowText(GetHwnd(), rsValue.c_str());
} // end of wxComboBox::SetValue
//
// Now replace with 'value', by pasting.
//
wxSetClipboardData( wxDF_TEXT
- ,(wxObject *)rsValue.c_str()
+ ,rsValue.c_str()
,0
,0
);
dwStyle &= ~WS_CLIPSIBLINGS;
m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle
- ,(PSZ)zClass // Window class
- ,(PSZ)label.c_str() // Initial Text
+ ,zClass // Window class
+ ,label.c_str() // Initial Text
,(ULONG)dwStyle // Style flags
,(LONG)0 // X pos of origin
,(LONG)0 // Y pos of origin
label = ::wxPMTextToLabel(m_label);
else
label = m_label;
- ::WinSetWindowText(GetHwnd(), (PSZ)label.c_str());
+ ::WinSetWindowText(GetHwnd(), label.c_str());
}
} // end of wxControl::SetLabel
vPtlStart.y = vY;
}
- PCH pzStr = (PCH)rsText.c_str();
+ PCH pzStr = rsText.char_str();
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
//
bRc = ::GpiQueryTextBox( m_hPS
,l
- ,(PCH)rsString.c_str()
+ ,rsString.char_str()
,TXTBOX_COUNT // return maximum information
,avPoint // array of coordinates points
);
bool bInteractive,
int nOrientation )
{
- DEVOPENSTRUC vDevOpen = { (char*)rsDeviceName.c_str()
- ,(char*)rsDriverName.c_str()
+ DEVOPENSTRUC vDevOpen = { rsDeviceName.char_str()
+ ,rsDriverName.char_str()
,NULL
,NULL
,NULL
wxString title = GetTitle();
if (!title.empty())
- ::WinSetWindowText((HWND)GetHwnd(), (PSZ)title.c_str());
+ ::WinSetWindowText((HWND)GetHwnd(), title.c_str());
if ( bShow )
{