event.m_clientData = GetClientData(event.m_commandInt);
wxString str(GetString(event.m_commandInt));
if (str != "")
- event.m_commandString = copystring((char *)(const char *)str);
+ {
+ event.m_commandString = str;
+ }
}
else
{
event.m_commandInt = -1 ;
- event.m_commandString = copystring("") ;
+ event.m_commandString.Empty();
}
event.SetEventObject( this );
ProcessCommand(event);
- if (event.m_commandString)
- delete[] event.m_commandString ;
return TRUE;
}
else if (param == LBN_DBLCLK)
EXTRALIBS = $(WXDIR)\lib\fl.lib
EXTRAFLAGS = /DwxDUMMY_OBJ_INCLUDED
PROGRAM=fl_demo
-OBJECTS = $(PROGRAM).obj
+OBJECTS = $(PROGRAM).obj settingsdlg.obj wxinfo.obj
!include $(WXDIR)\src\makeprog.vc
cbstore.obj controlarea.obj controlbar.obj dyntbar.obj dyntbarhnd.obj\
frmview.obj garbagec.obj gcupdatesmgr.obj hintanimpl.obj newbmpbtn.obj\
objstore.obj panedrawpl.obj pf_sample.obj rowdragpl.obj rowlayoutpl.obj\
- settingsdlg.obj toolwnd.obj updatesmgr.obj wxinfo.obj
+ toolwnd.obj updatesmgr.obj
!include $(WXDIR)\src\makelib.vc