环境:windowsxp+codeblocks+wxwidgets2.8.12/wxwidgets2.9.3
使用方法:
1. 建立显示窗口:
wxLogWindow *logwin = new wxLogWindow(this, "Log window");
2. 设置掩码:
wxLog::AddTraceMask(wxTRACE_OleCalls);
3. 期望在前建窗口中显示
wxLogTrace(wxTRACE_OleCalls, "show it baby");
但是实际没办法显示出期望的打印消息。
英文教程里面说到wxLogTrace要在调试版本中才能用,并且要设置__WXDEBUG__宏。这些我都做了。但还是没办法显示哟!