Exclude wxMSW-only code from wxUniversal build under Windows.
wxListCtrl::EndEditLabel() isn't available in wxUniv, it's wxMSW-only. This fixes the sample compilation in wxUniv/MSW build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -845,7 +845,7 @@ void MyFrame::OnAdd(wxCommandEvent& WXUNUSED(event))
|
|||||||
void MyFrame::OnEdit(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnEdit(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
// demonstrate cancelling editing: this currently is wxMSW-only
|
// demonstrate cancelling editing: this currently is wxMSW-only
|
||||||
#ifdef __WXMSW__
|
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
|
||||||
if ( m_listCtrl->GetEditControl() )
|
if ( m_listCtrl->GetEditControl() )
|
||||||
{
|
{
|
||||||
m_listCtrl->EndEditLabel(true);
|
m_listCtrl->EndEditLabel(true);
|
||||||
|
Reference in New Issue
Block a user