这篇教程C++ wxPostEvent函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中wxPostEvent函数的典型用法代码示例。如果您正苦于以下问题:C++ wxPostEvent函数的具体用法?C++ wxPostEvent怎么用?C++ wxPostEvent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了wxPostEvent函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: whilevoid* wxProcessTerminationThread::Entry(){ while (true) { usleep(100); int status = 0; int rc = waitpid(abs(m_data->pid), & status, 0); if (rc != 0) { if ((rc != -1) && WIFEXITED(status)) m_data->exitcode = WEXITSTATUS(status); else m_data->exitcode = -1; wxProcessEvent event; wxPostEvent(m_handler, event); break; } } return NULL;}
开发者ID:Bluehorn,项目名称:wxPython,代码行数:23,
示例2: evt// if diff > 0 show next, else show previousbool PicViewCtrl::ShowPageByDiffNumber(const int diff, bool bWantRet){ int cnt = m_pList->GetItemCount(); int cursel = m_pList->GetSelection(); int nextsel = 0; if(cursel != wxNOT_FOUND) { nextsel = ((cursel+diff) > cnt-1 ? cnt-1 : (cursel+diff)); nextsel = nextsel < 0 ? 0 : nextsel; } if(nextsel != cursel) { m_pList->SetSelection(nextsel); wxCommandEvent evt(wxEVT_COMMAND_LISTBOX_SELECTED, wxID_ANY); evt.SetInt(nextsel); if(!bWantRet) wxPostEvent(m_pFrame, evt); else ((MainFrame*)m_pFrame)->OnThumbnailLboxSelect(evt); return true; } return false;}
开发者ID:AaronLiChen,项目名称:HEVCAnalyzer,代码行数:24,
示例3: socketvoid Server::run(){ Poco::Net::ServerSocket socket(port); running = true; while (running) { if (socket.poll(Poco::Timespan(1, 0), Poco::Net::ServerSocket::SELECT_READ)) { Poco::Net::StreamSocket ss = socket.acceptConnection(); DebugThread *runnable = new DebugThread(ss); ClientThread *c = new ClientThread(new Poco::Thread(), runnable); clients.push_back(c); wxCommandEvent event(wxEVT_MY_EVENT_ADD_DEBUG_THREAD); event.SetClientData((void *) runnable); wxPostEvent(mainFrame, event); c->thread->start(*(c->runnable)); } } BOOST_FOREACH(ClientThread *c, clients) { c->runnable->stop(); c->thread->join(); delete c->runnable; delete c->thread; delete c; }
开发者ID:hagish,项目名称:lua-debugger,代码行数:37,
示例4: OnFile virtual wxDirTraverseResult OnFile(const wxString& filename) { if(m_pThread->TestDestroy()) { m_files.Clear(); return wxDIR_STOP; } wxFileName fn( filename ); const tSongClass *psc = CMetaDataHandler::GetSongClass(fn.GetExt()); if (psc) { m_files.Add( filename ); if ( m_files.GetCount() % 100 == 0 ) { wxCommandEvent UpdateScanProg( wxEVT_COMMAND_MENU_SELECTED, MUSIK_LIBRARY_THREAD_SCAN_PROG ); UpdateScanProg.SetExtraLong((long)m_files.GetCount()); wxPostEvent( m_pThread->Parent(), UpdateScanProg ); } } return wxDIR_CONTINUE; }
开发者ID:BackupTheBerlios,项目名称:musik,代码行数:24,
示例5: wxLogDebugbool ProjectManager::PushModificationToHistory(bool force){ wxDateTime maintenant=wxDateTime::UNow(); if(force || (maintenant-lastHistoryUpdate).GetMilliseconds()>UNDO_HISTORY_TIMESTEP) { lastHistoryUpdate=maintenant; if(this->rootUserConfig->GetElementByLibelle("mainpref")->GetElementByLibelle("history")->GetBoolConfig("keep_modification_history")) { if(!force) wxLogDebug(_("Add modifications in the change log")); else wxLogDebug(_("Forced adding changes in the change log.")); this->UpdateXmlFile("",false); configHistory.Add(new wxXmlDocument(projetConfig)); //D C++ wxPrintf函数代码示例 C++ wxPoint函数代码示例
|