2009年5月21日星期四

wxWidgets

//change log out to textcontrol
wxLog *logger=new wxLogTextCtrl(TextCtrlOut);
wxLog::SetActiveTarget(logger);

//wxtring cmp
(TextCtrl2->GetValue().Cmp(wxT("text"))==0)

//Close dialog
EndModal(int)
Int is showmodal return code.

// Give the frame an icon
#include<wx/icon.h>
SetIcon(wxICON(mondrian));

Best Regards
Miao

没有评论: