TestDestroy();
text_mutex.Lock();
m_frame->m_txtctrl->WriteText(text);
- text_mutex.UnLock();
+ text_mutex.Unlock();
wxSleep(1);
}
bool MyApp::OnInit(void)
{
// Create the main frame window
- MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 450, 340);
-
- // Give it an icon
-#ifdef __WXMSW__
- frame->SetIcon(wxIcon("AIAI"));
-#endif
-#ifdef __X__
- frame->SetIcon(wxIcon("aiai.xbm"));
-#endif
+ MyFrame *frame = new MyFrame((wxFrame *) NULL, (char *) "Minimal wxWindows App", 50, 50, 450, 340);
// Make a menubar
wxMenu *file_menu = new wxMenu;
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
{
- uint i;
+ unsigned int i;
for (i=0;i<m_threads.Count();i++)
delete (m_threads[i]);
Close(TRUE);