git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45272
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_refData = new wxAcceleratorRefData;
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
hAccel = ::WinLoadAccelTable( vHabmain
,NULL // resources always in .exe
,(ULONG)ulId
m_hWnd = (WXHWND)::WinCreateWindow( GetHwndOf(pParent) // Parent handle
,WC_BUTTON // A Button class window
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
,lStyle // Button style
,0, 0, 0, 0 // Location and size
,GetHwndOf(pParent) // Owner handle
void wxCheckBox::SetLabel( const wxString& rsLabel )
{
wxString sLabel=::wxPMTextToLabel(rsLabel);
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
} // end of wxCheckBox::SetLabel
wxSize wxCheckBox::DoGetBestSize() const
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
nIndex = (int)::WinSendMsg( GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
- ,(MPARAM)rsItem.c_str()
+ ,(MPARAM)rsItem.char_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.c_str()
+ ,(MPARAM)rsItem.char_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()
if ( HasFlag(wxCB_READONLY) )
SetStringSelection(rsValue);
else
if ( HasFlag(wxCB_READONLY) )
SetStringSelection(rsValue);
else
- ::WinSetWindowText(GetHwnd(), (PSZ)rsValue.c_str());
+ ::WinSetWindowText(GetHwnd(), rsValue.c_str());
} // end of wxComboBox::SetValue
//
} // end of wxComboBox::SetValue
//
// Now replace with 'value', by pasting.
//
wxSetClipboardData( wxDF_TEXT
// Now replace with 'value', by pasting.
//
wxSetClipboardData( wxDF_TEXT
- ,(wxObject *)rsValue.c_str()
dwStyle &= ~WS_CLIPSIBLINGS;
m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle
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
,(ULONG)dwStyle // Style flags
,(LONG)0 // X pos of origin
,(LONG)0 // Y pos of origin
label = ::wxPMTextToLabel(m_label);
else
label = m_label;
label = ::wxPMTextToLabel(m_label);
else
label = m_label;
- ::WinSetWindowText(GetHwnd(), (PSZ)label.c_str());
+ ::WinSetWindowText(GetHwnd(), label.c_str());
}
} // end of wxControl::SetLabel
}
} // end of wxControl::SetLabel
- PCH pzStr = (PCH)rsText.c_str();
+ PCH pzStr = rsText.char_str();
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
//
bRc = ::GpiQueryTextBox( m_hPS
,l
//
bRc = ::GpiQueryTextBox( m_hPS
,l
,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 = { (char*)rsDeviceName.c_str()
- ,(char*)rsDriverName.c_str()
+ DEVOPENSTRUC vDevOpen = { rsDeviceName.char_str()
+ ,rsDriverName.char_str()
wxString title = GetTitle();
if (!title.empty())
wxString title = GetTitle();
if (!title.empty())
- ::WinSetWindowText((HWND)GetHwnd(), (PSZ)title.c_str());
+ ::WinSetWindowText((HWND)GetHwnd(), title.c_str());